Hi I have another possibly stupid question but I can't figure it out...I made a simple app I wrote launch in landscape, but when I open the MainWindow.xib file with interface builder it always shows up in portrait how do I change that?
aah now I have another problem: in interface builder my window looks like this but in the simulator it gets messed up: how do you fix this?
Have you changed the "Initial interface orientation" in your plist file? Hopefully that should do it, orientations always confuse me
Remove the info.plist initial interface orientation and do it in code instead, it always works for me.
nothing changed Is this the right code? [application setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated:YES];
Try putting the following in your highest level view controller: Code: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } For example I created a test prject called LandscapeTest. I made the change to the plist file, turned the nib view to landscape and added a nav bar and toolbar. Then I added the above code to LandscapeTestViewController.m. Make sense? Works for me