Add view between status bar and navigation bar

What is the correct way to add a view between the Status Bar and the navigation bar? I am trying to create a banner similar to the call status bar banner that is present when you make a call. Right now, I'm just resizing the window and adding my banner view to the window. It works fine, but does not work with transitions.

As you can see below, overlapping sometimes occurs. Interestingly, overlapping can be enabled by displaying and then hiding the status bar banner in the call. This makes me think that this has something to do with the time when iOS calculates the window height and / or frame of the application.

Thank you for your help!

Screen shot

+4

Source: https://habr.com/ru/post/1543146/


All Articles