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
Post a Comment