Is this navigation bar part of a UINavigationController
? If not, I think you want to have your view controller be the delegate of the UINavigationBar
and implement the positionForBar
method to return UIBarPositionTop
. That should cause the navigation bar to leave some room at the top for the status bar.
如果您强制视图控制器在viewDidDisappear中显示应用程序的状态栏,则可能会发生这种情况。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.