如题
[[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的状态栏旋转方法。。。。
2 回答1.1k 阅读
1 回答990 阅读✓ 已解决
1 回答2.7k 阅读
1 回答1.4k 阅读
1.7k 阅读
1 回答1.1k 阅读
1.3k 阅读
表示没有见过需要单独旋转状态栏的需求,如果是横竖屏的话只需要在需要横屏的控制器中添加这个方法就可以了
(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeLeft;//向左横屏
}