0
我有斯威夫特的舊版本,並試圖做到這一點:buttonWithType」是不可用:使用對象構造‘的UIButton(類型:)
let button = UIButton.buttonWithType(UIButtonType.detailDisclosure) as UIButton
但得到的錯誤
buttonWithType’被不可用:使用對象結構'UIButton(類型:)
我該如何解決這個問題?我使用的是斯威夫特3.