【发布时间】:2012-07-25 02:42:37
【问题描述】:
我已经搜索了这个论坛(和其他),但还没有找到解决方案。 我有一个横向模式的应用程序。一切都很好,但是当我更改为另一个视图(带有 UITable)时,它处于纵向模式并且不会旋转。我已经尝试了一整天,但无法弄清楚。
@property (nonatomic, strong) IBOutlet UIView *aView;
@property (nonatomic, strong) IBOutlet UIViewController *aViewcontroller;
-----
aViewcontroller = [[UIViewController alloc] initWithNibName:@"ViewController" bundle:nil];
aViewcontroller.view = aView;
-----
[self presentModalViewController:aViewcontroller animated:YES];
//got my view in portrait orientation.
我的 .xib 文件中的视图都设置为 Orientation:Landscape。 这应该很简单吧?
先谢谢了!
【问题讨论】:
标签: xcode ipad uiviewcontroller orientation landscape