Lately when I updated to xcode 4.3.2 I’ve run into numerous new problems. In my app view controller m file, I keep getting the error “cannot use super because it is a root clause.”
I’ve looked on the internet for hours, so any help would be appreciated.
Thanks
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
}
- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
@end
When you declared your class, you probably forgot the superclass in the
@interfaceline. For example, you didYou want that first line to be:
or whatever superclass you intended to use.