ios - Orientation mask doesn't work on iPad Pro -


uiinterfaceorientationmaskportrait doesn't work on ipad pro. below code works on iphone , ipad2, not ipad pro.

- (bool)shouldautorotate {     return no; }  #if __iphone_os_version_max_allowed < __iphone_9_0 - (nsuinteger)supportedinterfaceorientations #else - (uiinterfaceorientationmask)supportedinterfaceorientations #endif {     return uiinterfaceorientationmaskportrait; } 


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -