Hi,
i need in my App following Code:
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
this works fine in iOS 8.
but in iOS 9 (Xcode 7) i became a warning:
"Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')"
i have changed it to:
-(UIInterfaceOrientationMask)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskPortrait;
}
and have fixed this Warning. But now i became a Warning in Xcode 6.3 (iOS 8)
How can i make this Code compatible for iOS 9 AND iOS 7 / 8 ?
Thanks, Tweak