aaaa aaaa - 1 year ago 102
iOS Question

not sure whats causing these errors

#import "ViewController.h"

@interface ViewController ()


@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.


I'm not sure what I changed or how to fix these errors:

Cannot find interface declaration for 'ViewController';
View controller cannot use 'super because it is not a root class

Answer Source

Likely you forgot to sub-class UIViewController (check your header):

@interface ViewController : UIViewController