mixing objective-c and swift when subclassing

前端 未结 3 1674
感动是毒
感动是毒 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 05:50

    You cannot subclass a Swift class in Objective-C.

    Excerpt from Using Swift with Cocoa and Objective-C

提交回复
热议问题