mixing objective-c and swift when subclassing

前端 未结 3 1619
感动是毒
感动是毒 2021-02-02 05:47

I\'ve got a subclass of UIViewController written in Swift called \'BaseViewController\'. I now have an \'old\' view controller called \'ViewController1\' written in Objective-C

3条回答
  •  囚心锁ツ
    2021-02-02 06:04

    You cannot subclass a Swift class in Objective-C. cf. towards the end of this section of the docs:

    However, note that you cannot subclass a Swift class in Objective-C.

提交回复
热议问题