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
This error may also come up if your class inherits from another custom class and if you used a forward declaration of your ancestor class (@class MyAncestorClass) in your header file, but forgot to #import your ancestor class in the implementation file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With