tags:

views:

30

answers:

2

I understand that you can choose what orientations to support, but if I want my landscape orientation to be somewhat different from my portrait, how do I code for it? Thanks!

A: 

Check this other SO question http://stackoverflow.com/questions/2815802/iphone-ipad-orientation-handling

pabloruiz55
A: 

You can use this method:


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return (interfaceOrientation == UIInterfaceOrientationLandscape);
}

If you would like to open your app directly in landscape mode, you must do this:
1. Open your application Info.plist.
2. Add a new row and set Key as Initial Interface Orientation.
3. Type in the Value field, Landscape (left home button).
4. Save it.

You can change left home button with right home button...
As it your application will start automatically in landscape mode :)

Matthew