iphone pushviewcontroller to landscape
Posted
by satyam
on Stack Overflow
See other posts from Stack Overflow
or by satyam
Published on 2010-05-19T04:40:08Z
Indexed on
2010/05/19
7:40 UTC
Read the original article
Hit count: 371
I've simple iphone application. it has 3 views. first view is portrait view that has 3 buttons. second view has a table view which is also a portrait. In first view, on click of a button second view is shown. on click of a cell in second view, thrid view is shown. but third view is a landscape. I'm using "pushViewController" to navigate from each view. When creating views in IB, first two views are portait and 3rd view is a landscape. In 3rd viewcontroller, i'm using following code as well:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
//return UIInterfaceOrientationIsLandscape(interfaceOrientation);
return ((interfaceOrientation == UIInterfaceOrientationLandscapeRight) || (interfaceOrientation == UIInterfaceOrientationLandscapeLeft));
}
How can I show first two views in portrait and third view in landscape.
© Stack Overflow or respective owner