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

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -