2

3 つのcontrollerFirstViewControllerと.SecondViewControllerRootViewController

FirstViewControllerからRootViewController、次にいくつかのボタンのタップSecondViewControllerで提示FirstViewControllerするので、コントローラーの階層は次のようになります。

RootViewController --> FirstViewController --> SecondViewController

が画面に表示されているときにin-call status barシミュレーターのToggle In-call status barオプションを使用して表示し、それを閉じて元に戻ると、ビューが下に移動せず、コントローラーのビューと重なってしまいます。SecondViewControllerFirstViewControllerFirstViewControllerGreen status bar

このシナリオを処理する方法のようなアイデアはありますか? またはビューフレームを手動で調整する必要がありますか?

ノート:

1) デモ アプリでこのシナリオを試しているので、複雑なコードはありません。

in-call status bar2) また、 から表示しFirstViewControllerて に戻るとRootViewController、ルート コントローラーのレイアウトが台無しにならず、ビューが正しくシフトダウンするという奇妙な動作も見つかりました(RootViewControllerストーリーボードにあり、別の XIBFirstViewControllerを持っています)。SecondViewController

どんなポインタでも大歓迎です。

4

0 に答える 0