Frage

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); }

War es hilfreich?

Lösung 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

Andere Tipps

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));
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top