ios - Orientation lock for iPhone only -


i have designed ui ios app wany hregular setting.

now orientation works fine in ipad. when app running on iphone, orientation gives blank white screen.

is there way such can lock orientation in iphones , orientation available ipad?

you can use shouldautorotate , supportedinterfaceorientation uiviewcontroller methods lock rotation on iphone not on ipad.

simply return yes ipad , no iphone in shouldautorotate, , returns allowed orientation iphone/ipad in supportedinterfaceorientation.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -