6
我試圖使用UIScrollViewDelegate:不能專注非泛型類型「的UIViewController」
class ViewController: UIViewController <UIScrollViewDelegate> {}
但我有錯誤:Cannot specialize non-generic type 'UIViewController'
我試圖使用UIScrollViewDelegate:不能專注非泛型類型「的UIViewController」
class ViewController: UIViewController <UIScrollViewDelegate> {}
但我有錯誤:Cannot specialize non-generic type 'UIViewController'
你的語法不正確。您不使用斯威夫特的方括號,
class ViewController: UIViewController, UIScrollViewDelegate {}