InterfaceBuilder - UIViewController subclass not recognized as subclass

前端 未结 4 1269
無奈伤痛
無奈伤痛 2021-01-15 12:25

I\'m working on a simple iPhone app.

I have 1 UINavigationController and 2 subclasses of UIViewController.

I have a MainWindow.xib file, a PersonListView.xib

4条回答
  •  旧时难觅i
    2021-01-15 13:29

    I got the same mistake.

    The problem is, that you didn't set the target of PersonListViewController.m.

    Go to info of PersonListViewController.m, select targets section and make sure that the target of your app is checked.

提交回复
热议问题