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

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

ruby - Net::HTTP extremely slow responses for HTTPS requests -