for all the UIViewController that you load into the tabbarcontroller, you should return True in
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
Note: The tab bar controller will not automatically rotate if ALL the controllers it contains also will not rotate automatically.
from Turn one UIViewController in a UITabBar application →>
There is no easy way to have only one view in landscape mode, while the other in landscape mode, as well as an easy way to programmatically switch to landscape mode.
One possible approach would be to use CGAffineTransform to convert your view into your viewWillAppear (i.e. right before the view):
- (void)viewWillAppear:(BOOL)animated; {
source share