最简单的方法:
[[UIDevice currentDevice] setValue:[NSNumber numberWithInteger:UIInterfaceOrientationLandscapeRight] forKey:@"orientation"];
这篇帖子区分了三种情况:包含nav,包含tabBar,自身为单独的viewcontroller。http://www.jianshu.com/p/650ba0ff626b
http://www.jianshu.com/p/4a51a2edf270(含图)
http://www.jianshu.com/p/5f5d46e674a7
http://blog.youkuaiyun.com/shly1988/article/details/46776691
http://www.jianshu.com/p/d8018006f0b5
http://blog.youkuaiyun.com/zhenyu5211314/article/details/24003809
本文介绍了一种简单的iOS屏幕旋转方法,并提供了针对不同ViewController场景的具体解决方案,包括含有导航栏、底部标签栏及独立ViewController的情况。
1362

被折叠的 条评论
为什么被折叠?



