I have a UITableViewController that works in both portrait and landscape. From this controller, I click another view controller on the navigation controller. This new viewController is a portrait only.
The problem is that when I am in the landscape and click on the view controller, the new view manager is in the landscape until I rotate it to the portrait. Then he got stuck in the portrait, as it should be.
Can I always display it in a portrait? Even if his parent clicks on him in the landscape?
Update:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
Linus source
share