3 つのcontrollerFirstViewController
と.SecondViewController
RootViewController
FirstViewController
からRootViewController
、次にいくつかのボタンのタップSecondViewController
で提示FirstViewController
するので、コントローラーの階層は次のようになります。
RootViewController --> FirstViewController --> SecondViewController
が画面に表示されているときにin-call status bar
シミュレーターのToggle In-call status bar
オプションを使用して表示し、それを閉じて元に戻ると、ビューが下に移動せず、コントローラーのビューと重なってしまいます。SecondViewController
FirstViewController
FirstViewController
Green status bar
このシナリオを処理する方法のようなアイデアはありますか? またはビューフレームを手動で調整する必要がありますか?
ノート:
1) デモ アプリでこのシナリオを試しているので、複雑なコードはありません。
in-call status bar
2) また、 から表示しFirstViewController
て に戻るとRootViewController
、ルート コントローラーのレイアウトが台無しにならず、ビューが正しくシフトダウンするという奇妙な動作も見つかりました(RootViewController
ストーリーボードにあり、別の XIBFirstViewController
を持っています)。SecondViewController
どんなポインタでも大歓迎です。