【发布时间】:2013-02-26 14:47:31
【问题描述】:
在项目摘要中,“支持的界面方向”都被选中,因为我的应用程序中有一个照片库视图,可以随设备旋转。其他视图仅为纵向。目标设备是 iPhone,所有的东西在 iPhone 中都表现良好。但是当它在我的 iPad 上以横向模式运行时,启动画面和 rootView 如下:
飞溅景观:
rootview-风景:
我期望的外观应该与 iPad 的纵向模式相同:
飞溅肖像:
rootview-纵向:
rootView为MyNavigationController,相关代码如下:
MyNavigationController.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
- (BOOL)shouldAutorotate {
return NO;
}
【问题讨论】:
-
我不太明白您要做什么?您希望该应用如何与 iPad 配合使用?
标签: ios ipad orientation splash-screen