做了一个测试的Demo(IPAD系统是5.1) 发现屏幕旋转不了
新建一个工程后就在viewcontroller中添加了如下的代码
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
return YES;
}
其他系统生成的代码没有修改
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
如果锁屏幕的锁,锁着, 无论如何都旋转不了的.