xcode - supported InterfaceOrientations iOS 8 vs. iOS 9 -
a warning has occurred after updated latest version of xcode (7.0).
conflicting return type in implementation of 'supportedinterfaceorientations': 'uiinterfaceorientationmask' (aka 'enum uiinterfaceorientationmask') vs 'nsuinteger' (aka 'unsigned long')
i'm guessing
-(nsuinteger)supportedinterfaceorientations
is no longer supported in ios 9 , tried searching documentation on couldn't find it.
so best solution going forward?
i think have found possible solution:
#if __iphone_os_version_max_allowed >= 90000 - (uiinterfaceorientationmask)supportedinterfaceorientations #else - (nsuinteger)supportedinterfaceorientations #endif
Comments
Post a Comment