我需要在我的应用中只支持纵向方向。我该怎么做?我曾尝试加入仅支持纵向方向
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
和
-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationPortrait;
}
但它简化版,帮助 - 视图旋转反正。
在此先感谢!
这就是真正的原因。我很抱歉我的愚蠢:( – Knodel 2010-10-02 16:54:59