我创建了一个新项目并添加了一个名为的新类MyViewController.我的代码编译时MyViewController是一个子类,NSObject但是当我将其更改为继承时,UIViewController我得到以下两个错误消息:
Class "MyViewController" defined without specifying a base class
Run Code Online (Sandbox Code Playgroud)
和
Cannot find interface declaration for "UIViewController", superclass of "MyViewController".
Run Code Online (Sandbox Code Playgroud)
我的头文件有什么问题?
#import <Foundation/Foundation.h>
@interface LBAHypnosisViewController : UIViewController
@end
Run Code Online (Sandbox Code Playgroud)