3

I want to build some view controllers based on Swift that can be accessed from Obj-C code, like below:

@objc class SUnitViewController: UIViewController {

But Xcode keeps telling me:

Only classes that inherit from NSObject can be declared @objc

Am I doing something wrong obvious here? Or is this actually feasible? Thanks.

Jack X.
  • 85
  • 2
  • 10

0 Answers0