Monday, 15 April 2013

iphone - Lock Portrait Orientation in IOS on Application Boot from Landscape -


Then I have participated in a fun bug. I have many subviews containing the UIAdation that will show that we can only view in portrait view Want to be qualified To achieve this goal, we created the sub-section of the UIAVG controller and added the following:

  should overcode fnsAurotate () -> Bull {return false} overcoded fuses supported interface (-) - & gt; Int {Return Int (UIInterfaceOrientationMask.Portrait.rawValue)}  

This works very well, and the app is locked in portrait and if the user changes the device to sideways and If the app loads, then EXCEPT can not be rotated. The expected result from the scenario was for the device to load in the picture, although it loads in the landscape, and will never turn the user back on the portrait.

Once the way I am able to replicate it, it is already loading the app from a device in landscape mode. any idea? There are a lot of posts about device orientation, but no one was able to talk to me about app boots

Remove the autoroteate and it should work properly.


No comments:

Post a Comment