Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我的应用程序从后台返回时,它总是旋转为纵向。在我的 VC -
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
interfaceOrientation是UIInterfaceOrientationPortrait。可能是什么原因 ?
interfaceOrientation
UIInterfaceOrientationPortrait
尝试使用以下方法检查该 VC 中的方向:
[[UIApplication sharedApplication] statusBarOrientation];
您可以在项目的 plist 中检查您的方向设置。