解雇modalViewController移动iphone周围的主视图按钮 [英] dismissing modalViewController moves main view buttons around iphone

查看:114
本文介绍了解雇modalViewController移动iphone周围的主视图按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 presentModalViewController dismissModalViewController ,动画设置为 YES 在这两种情况下。这很好。

I'm using presentModalViewController and dismissModalViewController with animation set to YES in both cases. This works fine.

在取消模态视图后,主视图上的所有内容都向下移动,看起来像是20px。

After the modal view is dismissed, all of the content on the main view has moved down what looks like 20px.

有人会知道为什么会这样吗?

Would anyone have any idea why this happens?

推荐答案

是这个应用程序全屏?

Is this app full screen?

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

I have seen some strange issues regarding apps that hide the status bar. You may try re-hiding the status bar in viewWillAppear or viewWillDisappear on the modal.

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

这篇关于解雇modalViewController移动iphone周围的主视图按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆