Hai Guys!
Having some issues..
I have an app with a root controller, this is landscape only. I checked this all in the nibs, and edited the .plist, so it's landscape(left/right) only. and my method returns
So when I push my special controller onto the stack (it's a navigationcontroller). it also goes landscape, and that's possible going to portrait mode. but if i switch the second controller to portrait mode, and then go back to my root, this is also portrait mode. So it doesn't do a second check, and changes again.. Any idea how I would go on checking how to fix this?
Gz, Noxx
Having some issues..
I have an app with a root controller, this is landscape only. I checked this all in the nibs, and edited the .plist, so it's landscape(left/right) only. and my method returns
Code:
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations.
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
So when I push my special controller onto the stack (it's a navigationcontroller). it also goes landscape, and that's possible going to portrait mode. but if i switch the second controller to portrait mode, and then go back to my root, this is also portrait mode. So it doesn't do a second check, and changes again.. Any idea how I would go on checking how to fix this?
Gz, Noxx