How to make view go under navigation bar

ios ios11

431 观看


1139 作者的声誉

In iOS 11, when the navigation bar is shown (after having been hidden), the entire view below it moves down. How can I stop this from happening?

Nav bar hidden:


Nav bar showing:

Nav bar showing

作者: MendyK 的来源 发布者: 2017 年 12 月 27 日

回应 1


86 作者的声誉

set the transparency of navigation to false.

self.navigationController?.navigationBar.isTranslucent = false;
作者: Sumit Jain 发布者: 2017 年 12 月 27 日