我更改了 info.plist 中的属性以支持横向方向,因此应用程序也以横向模式打开。我面临的问题就像当应用程序以横向模式加载时视图正确对齐。拆分视图右侧有一个视图未正确对齐。但是当我在纵向模式下加载它然后进入横向时没有问题。您能否告诉我是否有其他属性或解决此问题的方法。
问问题
258 次
2 回答
2
于 2011-02-09T06:17:59.853 回答
0
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // 重写以允许任何方向。 返回 ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight)); }
添加此代码...希望它会工作...
于 2011-03-16T06:27:37.233 回答