Ios 自定义UIButton Swift 2.0
我正在尝试将我的项目转换为Swift 2.0。我有一个自定义UIButton,当我尝试构建时,它现在会导致错误。 我的代码是:Ios 自定义UIButton Swift 2.0,ios,swift,uibutton,ios9,Ios,Swift,Uibutton,Ios9,我正在尝试将我的项目转换为Swift 2.0。我有一个自定义UIButton,当我尝试构建时,它现在会导致错误。 我的代码是:var myButton=MyCustomButton.buttonWihType(.Custom)作为UIButton 这是我在Swift 1.2中的项目,但现在不起作用。该按钮使用一个名为MyCustomButton 谢谢你试过这个吗 var myButton = MyCustomButton(type: .Custom) 你试过这个吗 var myButton
var myButton=MyCustomButton.buttonWihType(.Custom)作为UIButton
这是我在Swift 1.2中的项目,但现在不起作用。该按钮使用一个名为MyCustomButton
谢谢你试过这个吗
var myButton = MyCustomButton(type: .Custom)
你试过这个吗
var myButton = MyCustomButton(type: .Custom)