Is IOS Landscape template OK?

In the ios setup, on the function:

// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
- (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
    return UIInterfaceOrientationMaskAllButUpsideDown;
#endif
}

Why is it used UIInterfaceOrientationMaskAllButUpsideDown instead of UIInterfaceOrientationMaskLandscape in a landscape project?

Also I tested on current iOS phone and my test application is rotated with the physical rotation of the phone. How can I lock the rotation to always Landscape?

Thanks,

You can modify what that method returns in order to change which orientations are supported. We define our supported orientations in the Info.plist file of the project target instead of directly in the code.

See: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html

Title: Supported interface orientations
Raw Key:UISupportedInterfaceOrientations
Type: Array

Item1
UIInterfaceOrientationLandscapeRight
Item2
UIInterfaceOrientationLandscapeLeft