I have a viewController that autorotates just fine, The problem is that is I have an Action Sheet opened, when I rotate the device the Action Sheet is not rotating.
Is there a way to make it autorotate.
Anyone’s Help will be much appreciated.
Thank you,
Monish.
UIActionSheet autorotates automatically – its orientation is the same as the view’s on which it is being shown.
So that if you have a controller which can be rotated to any orientation(implements the following:
)
Then if you show your UIActionSheet in this controller’s view, action sheet will be of the same orientation as the controller’s view and will autorotate automatically.
But if you will somehow show this UIActionSheet in the window(main application window), which does not autorotate to landscape, than your controller will rotate to landscape and after clicking the button, your UIActionSheet won’t be presented in landscape but in portrait as the main window.