I am presenting a modal view and action sheet from master panel of UISplitViewController
. iOS 9.3
1) If I present the view when the iPad is in portrait mode and rotate the iPad to landscape, then the screen is not rotating.
2) But if I present the view when the iPad is in landscape mode and rotate the iPad to portrait, then the screen is rotating.
How can I achieve the rotation?