Reputation: 302
does anyone know how to fix this error?
- (NSUInteger)supportedInterfaceOrientations
Conflicting return type in implementation of 'supportedinterfaceOrientationMask'(aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')
Upvotes: 0
Views: 82
Reputation: 6701
the documentation changed in iOS 9, if you go to UIViewController.h it now declares supportedInterfaceOrientations as:
- (UIInterfaceOrientationMask)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0);
if you change the return type Xcode will stop complaining.
Upvotes: 1