The direction of the Controller in iOS and the direction of the iOS controller.
# Import "LKNavigationController. h"
@ Interface LKNavigationController ()
@ End
@ Implementation LKNavigationController
# Pragma mark-implement this method to control the screen direction
/**
* Control the directions supported by the current controller
* The returned value is UIInterfaceOrientationMask *
*/
-(NSUInteger) supportedInterfaceOrientations
{
/**
* UIInterfaceOrientationMaskPortrait: Portrait screen (normal)
* UIInterfaceOrientationMaskPortraitUpsideDown: Portrait screen (up and down)
* UIInterfaceOrientationMaskLandscapeLeft: landscape to left
* UIInterfaceOrientationMaskLandscapeRight: landscape to the right
* UIInterfaceOrientationMaskLandscape: Landscape screen (horizontal screen to left \ horizontal screen to right)
* UIInterfaceOrientationMaskAll: all directions (including all the above cases)
*/
ReturnUIInterfaceOrientationMaskPortrait;
}