iOS 13 navigationbar show in wrong position

We meet a strange problem recently. Someone play our app, and find the navigationbar is far away from the status bar like below, but the left top position where back button should be showed normally can still resposne touch event:


https://imgur.com/15bFg8S


We have never met such case before, it seems it only happen on iOS 13, and cannot find a stable way to reproduce it. The app summited to appstore is build using xcode 10, the phone where this problem occur is iPhone 6s with iOS 13.1.3。


We don't have special customization with navigationbar, expect some page may hide the navigationbar, and some page may show the navigation bar.


Is there any hint under what case will navigationbar's y position is large than 64

Look in IB how you defined Presentation:

- open Attributes inpector for Navigation controller

- In View Controller section, look for Presentation

- If it says automatic, change to Full screen


Repeat the same for views in navigation hierarchy.


If that solves the problem, thanks to close the thread. Otherwise, explain and may be post code.

Thanks for your reply. Our app has already replaced automatic with fullscreen before the problem occured.

Due to UIModalPresentationAutomatic is defined in iOS 13 SDK, and we build against with iOS 12 SDK (still use XCode 10.x), I don't think such replace really takes effect.


I will still try to reproduce it.

we found that there are unfinished animations in navigationbar's layer which will result in such case. If we remove all animations on the layer, navigationbar become normal again. We don't know in which case the navigation bar won't finish its animations

iOS 13 navigationbar show in wrong position
 
 
Q