0
基本上,我一直在使用Apple開始開發iOS應用程序(Swift)進行學習,並且我遇到了一些根本無法使用的代碼 - 蘋果版本。有關XCode中選擇器的快速問題(Swift)
button.addTarget(self, action: #selector(RatingControl.ratingButtonTapped(_:)),
forControlEvents: .TouchDown)
,並且錯誤是:
預期 '' 分隔符(在...之間 「動作:」 和 「#selector」 兩次)
預期表達在表達式
列表
可能重複[@selector()在Swift?](http://stackoverflow.com/questions/24007650/selector-in-swift) – fuzz
@gotnull - 改變#選擇器 - > @選擇器()仍然給我錯誤#2 –
你運行的是哪個版本的Xcode? – dan