I want to do the following:
ViewControllerA should not go into horizontal orientation ViewControllerA pushes ViewControllerB ViewControllerB should go into horizontal orientation.
Not sure what to set to make this happen.
I want to do the following:
ViewControllerA should not go into horizontal orientation ViewControllerA pushes ViewControllerB ViewControllerB should go into horizontal orientation.
Not sure what to set to make this happen.
Take a look at AlternateViews Apple sample code: it's what you need.
In each
UIViewController
, you'll need to override theshouldAutorotateToInterfaceOrientation
method and return a boolean value for each interface orientation you support:For more information, check out the
UIViewController
class reference.