我已经在纵向开发我的项目,现在我想将我的项目方向设置为横向。我已经将所有 xib 文件的方向属性设置为横向,并且在 .plist 中我也将支持的界面方向的所有项目设置为横向,但是当我运行我的项目时,一个 View 仍然是纵向的......在这个 View 中我正在展示pdf文件。
提前致谢!!!
最佳答案
你有没有把下面的方法放在你的view controller中
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
}
关于iphone - 将我的项目从纵向转换为横向时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5191211/