objective c - How to temporarily lock iPad/iPhone orientation -


At a certain point in my application, I would like to temporarily disable the rotation feature - the code effectively changes the orientation "Locking" is similar to the locked toggle switch on the iPad in the hardware.

I am currently doing this:

  [[UIDwise current device] end generating development instruction notification]  

And when I I'm calling through, so I call:

  [[UIDEWIS current device] is starting to start] device authoration notification]  

While doing all this work Appears to, the API document indicates that always starts after an end Security should - and I'm doing it basically reverse. Is there another appropriate API to handle "lock orientation"?

I think it is not as simple as answering the orientation change from your controller you're conditionally Depending on the parameters you are passing, you do not always have to return true.

  - (BOOL) must be ATOrotateTontfaceArmentation: (UIInterfaceOrientation) Interface Orientation {if (RAND)% 2 == 0) {// Assess that I want permission to rotate the return Yes; } And {not return; }}  

Comments