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

来源:互联网 发布:做梦醒来感觉很累 知乎 编辑:程序博客网 时间:2024/05/22 13:11

    [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeLeftanimated: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);

    

0 0
原创粉丝点击