在APPdelegate.h 中
@property (assign , nonatomic) NSInteger isForcePortrait;
APPdelegate.m 中
self.isForcePortrait == 1 《只支持横屏》
self.isForcePortrait == 2 《支持左右横屏和竖屏》
self.isForcePortrait == 3 《只支持一个方向的横屏》
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
if (self.isForcePortrait == 1){
return UIInterfaceOrientationMaskPortrait;
}else if(self.isForcePortrait == 2){
return