我已经开发了我的项目,但是它只支持竖屏模式,现在我想将其设置为横屏模式。我已经将所有xib文件的方向属性设置为横屏,并且在.plist文件中也将所有Supported interface orientations的项目设置为横屏,但是当我运行我的项目时,仍然有一个视图以竖屏模式显示... 在这个视图中,我正在显示PDF文件。
提前感谢!!!
提前感谢!!!
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
}
(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return (interfaceOrientation==UIInterfaceOrientationLandscapeLeft || interfaceOrientation==UIInterfaceOrientationLandscapeRight);
}
(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return (interfaceOrientation==UIInterfaceOrientationPortrait || interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown);
}