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

时间:2016-06-18 00:49:40

标签: ios objective-c

 #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

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

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

1 个答案:

答案 0 :(得分:3)

可能你忘了子类UIViewController(检查你的标题):

@interface ViewController : UIViewController