实现某一个特定的controller横屏,之前的方法好像无法实现了
可以使用仿射变换,做个动画,对界面进行旋转,现在优酷视频用的就是
没有研究过,具体你多搜索搜索,顶你
http://blog.csdn.net/virgo826627?viewmode=contents
我这里面有个横竖屏幕设置,你看看呢过不能帮到你。
(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
if (self.allowRotation) {
return UIInterfaceOrientationMaskAll;
}
return UIInterfaceOrientationMaskPortrait;
}
你可以用一个bool变量来控制你要横屏的页是否可以横屏
此方法用在Appdelegate中