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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -