InterfaceBuilder - UIViewController subclass not recognized as subclass

前端 未结 4 1285
無奈伤痛
無奈伤痛 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条回答
  •  忘掉有多难
    2021-01-15 13:18

    From the exception it appears that the binding was not done properly. The method signature does not seem to be right judging by the exception. Is the button action linked to a method with return type IBAction? The signature of the method should be

    -(IBAction) methodName;

提交回复
热议问题