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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -