如题
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight]; 旋转状态栏的方法在ios 9.0 过期了。
http://blog.csdn.net/ginhoor/article/details/20454229 在这边找到了旋转的答案,但是还是想知道ios9的状态栏旋转方法。。。。
如题
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight]; 旋转状态栏的方法在ios 9.0 过期了。
http://blog.csdn.net/ginhoor/article/details/20454229 在这边找到了旋转的答案,但是还是想知道ios9的状态栏旋转方法。。。。
1 回答1.1k 阅读
1 回答814 阅读
2 回答614 阅读
1 回答597 阅读
2 回答599 阅读
1 回答691 阅读
637 阅读
表示没有见过需要单独旋转状态栏的需求,如果是横竖屏的话只需要在需要横屏的控制器中添加这个方法就可以了
(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeLeft;//向左横屏
}