我已经搜索了这个论坛(和其他),但还没有找到解决方案。我有一个横向模式的应用程序。一切都很好,但是当我更改为另一个视图(使用 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。这应该很简单吧?
预先感谢!