您的位置:首页 > 其它

关于开发iPad项目只支持横屏显示的设置

2016-10-08 14:29 176 查看
    [[UIApplication
sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft
animated:NO];

    self.view.bounds =
CGRectMake(0,
0, self.view.frame.size.width,
self.view.frame.size.height);

    self.view.transform =
CGAffineTransformMakeRotation(M_PI*0.5);

    
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  iPad横屏设置
相关文章推荐