Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')
What should I do?
Change return type for after iOS 9- (NSUInteger)supportedInterfaceOrientations ↓ - (UIInterfaceOrientationMask)supportedInterfaceOrientations
This is useful coding if the project contain under iOS 9
- #if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
- - (NSUInteger)supportedInterfaceOrientations
- #else
- - (UIInterfaceOrientationMask)supportedInterfaceOrientations
- #endif
- {
- return UIInterfaceOrientationMaskPortrait;
- }