转屏

//当前vc是否支持转屏

-(BOOL)shouldAutorotate

{

    return YES;

}

//支持哪些转屏

-(NSUInteger)supportedInterfaceOrientations

{

    return UIInterfaceOrientationMaskPortrait;

}

 

//当前viewcontroller默认的屏幕方向

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

{

    return ( UIDeviceOrientationLandscapeRightUIDeviceOrientationLandscapeLeft );

}

posted @   xuanInitial  阅读(131)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示