#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,因为它不是根类
答案 0 :(得分:3)
可能你忘了子类UIViewController(检查你的标题):
@interface ViewController : UIViewController