Is it possible to turn off the animation for the autorotation? I want it to rotate, but I just dont want the animation to occur (like an instant switch).
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- how do you prevent page scroll in textarea on mobi
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Keep constant number of visible circles in 3D anim
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
If you really need to, just use
setAnimationsEnabled
ofUIView
:It does the trick for me. Of course it's not recommended to do this unless you have a very good reason to do it.
Just add the following code to overwrite the standard rotation animation:
@Nils Munch unfortunately this does not work properly, the setStatusBarOrientation expects
UIInterfaceOrientation
notUIDeviceOrientation
and casting is bad practice. Correct me if I am wrong