通话状态栏与呈现视图控制器重叠

时间:2016-01-11 16:40:53

标签: ios objective-c autolayout uistatusbar in-call

假设我只有3个控制器FirstViewControllerSecondViewControllerRootViewController

我在FirstViewController上显示RootViewController,然后在某个按钮上点按SecondViewController FirstViewController,这样控制器的层次结构就会显示出来像这样:

RootViewController --> FirstViewController --> SecondViewController

现在,当in-call status bar屏幕显示Toggle In-call status bar时,我使用模拟器SecondViewController选项显示FirstViewController,然后通过解除它来回到FirstViewController,{{ 1}}的视图不会向下移动,因此Green status bar与控制器的视图重叠。

你们有没有想过如何处理这种情况?或者我们真的需要手动调整View框架吗?

注意:

1)我正在使用演示应用程序尝试此场景,因此我没有复杂的代码。

2)另外,我发现了一种奇怪的行为,如果我从in-call status bar显示FirstViewController并返回RootViewController,它就不会弄乱根控制器' s布局及其视图正确向下移动(RootViewController在故事板中,而FirstViewControllerSecondViewController具有单独的XIB)。

非常感谢任何指针。

0 个答案:

没有答案
相关问题