- (UIInterfaceOrientationMask)application:(UIApplication *)application
supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return [YGRotation sharedInstance].orientationMask;
}
#pragma mark - 横屏
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor=[UIColor redColor];
[[YGRotation sharedInstance] rotationLandscape];
}
#pragma mark - 竖屏
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
[[YGRotation sharedInstance] rotationPortrait];
}