关于Objective C:关闭modalViewController在iPhone上移动主视图按钮

dismissing modalViewController moves main view buttons around iphone

在两种情况下,我都将presentModalViewControllerdismissModalViewController的动画设置为YES。效果很好。

关闭模态视图后,主视图上的所有内容都向下移动了20px。

有人会知道为什么会发生这种情况吗?


此应用是否全屏显示?

我已经看到一些有关隐藏状态栏的应用程序的奇怪问题。您可以尝试将状态栏重新隐藏在模式的viewWillAppear或viewWillDisappear中。

1
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];