Question

How can i create universal apps using xcode 3.2.6 in Landscape mode bydefault?I need seprate .xib files for each view,Is i have to use this code - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {// Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationLandscape); }

Was it helpful?

Solution 2

I use this sample code and for making its View based i just hide its Navigation bar by using this code self.navigationController.navigationBarHidden = YES; in the RootViewController_Phone.h and in RootViewController_Pad BenellingsonPost

OTHER TIPS

In your plist, you should change supported interface orientations to just two items :

Item 0 Landscape (right home button)

Item 1 Landscape (left home button)

And use in each view controller:

  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
   // Return YES for supported orientations
   return (UIInterfaceOrientationIsLandscape(interfaceOrientation));
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top