After upgrading to Xcode 7.0 I get a warning in the UIViewControllerRotation method: - (NSUInteger)supportedInterfaceOrientations
:
Conflicting return type in implementation of
'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka
'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned
int')
Why is that, and how do I fix it?
EDIT:
If you go to the definition you'll see that the return type acctually has changed:
- (UIInterfaceOrientationMask)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0);
but changing the return type in the code doesn't silence the warning.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…