Quote:
Originally Posted by fraser5002
Hi,
Is there a way in xcode to stop all xibs in my app from rotating. I want them all to remain in portrait? I don't want the pages to rotate to landscape when the device is tilted.
Thanks
|
Code:
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
change it in all your .m files.
but i noticed that if one of your .m files have different coding (i.e. instead of UIInterfaceOrientationPortrait, u have UIInterfaceOrientationPortraitUpsidedown) than it disables all the views except for the regular portrait view.