Ios 不确定是什么导致了这些错误

Ios 不确定是什么导致了这些错误,ios,objective-c,Ios,Objective C,我不确定更改了什么或如何修复这些错误: 找不到“ViewController”的接口声明; 视图控制器无法使用“super”,因为它不是根类很可能您忘记将UIViewController子类(检查标题): 你的ViewController.h文件是什么样子的?它只有#import谢谢你修复了它! #import "ViewController.h" @interface ViewController () @end @implementation ViewController -

我不确定更改了什么或如何修复这些错误:

找不到“ViewController”的接口声明;
视图控制器无法使用“super”,因为它不是根类

很可能您忘记将UIViewController子类(检查标题):


你的ViewController.h文件是什么样子的?它只有#import谢谢你修复了它!
 #import "ViewController.h"




@interface ViewController ()

@end

@implementation ViewController
- (void)viewDidLoad {
  [super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
 // Dispose of any resources that can be recreated.
}


@end
@interface ViewController : UIViewController