aaaa aaaa -5 years ago 228
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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download