In my application, I have two xibs set to landscape, and the app's info is set to landscape, but when I switch from view 1 to view 2 it makes it portrait on view 2.
I posted a video showing what's happening. The view switch happens at the first second. Sorry. You may need to rewatch. The rest of the video is the same issue.
Orientation iPhone SDK Issue - YouTube
.h for view 1
Code:
- (IBAction)viewSwitchSingle:(id)sender;
.m for view 1
Code:
//Importing of other view controllers
#import "SinglePlayer.h"
@implementation ViewController
//Switching of views from the menu
- (IBAction)viewSwitchSingle:(id)sender {
SinglePlayer *sp = [[SinglePlayer alloc] initWithNibName:@"SinglePlayer" bundle:nil];
sp.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:sp animated:NO];
}
WITH THE MESS IS GOING BACK TO PORTRAIT? HOW DO I KEEP IN IN LANDSCAPE? PLEASE HELP!