0

当我的应用程序从后台返回时,它总是旋转为纵向。在我的 VC -

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

interfaceOrientationUIInterfaceOrientationPortrait。可能是什么原因 ?

4

2 回答 2

0

尝试使用以下方法检查该 VC 中的方向:

[[UIApplication sharedApplication] statusBarOrientation];
于 2012-08-18T18:27:46.567 回答
0

您可以在项目的 plist 中检查您的方向设置。

于 2012-08-18T21:40:31.617 回答