How to manage application when orientation changes?

H

The problem is that when you rotate the device then

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

Method gets called but when you go to the next screen then this method does not get called. if you rotate your device again then that method gets called.

So if you want to change next screen orientation as device current orientation, then check the device’s current orientation with in viewDidLoad() method or ViewWillApper() method. Then according to that set your current view.

About the author

anshul.jain
By anshul.jain

Category