ios - Putting a UIView between UINavigationBar and status bar in order to show custom ads -


so i'm struggling task assumed easy. i'd place uiview show ads between uinavigationbar , top of window thus:

enter image description here

it seems have 2 options:

option (1)

somehow programmatically push uinavigationbar downwards , programmatically insert uiview above navigation bar , flush bottom of status bar:

enter image description here

option (2)

dragging "custom" uinavigationbar onto main view placing uiview above custom navigation bar:

enter image description here

in both options, i'm using navigation controller push transitions. in second option, though, hide inbuilt navigation bar since i'm using custom one.

i've tried both options hitting brick wall in each. may edit question later go detail i've got stuck.............

...........but should straightforward!

what's stock-standard way of putting uiview between navigation bar , status bar? or, in other words, how apps show custom ads (non-iads) top of app show them?

i fear/hope solution blindingly obvious , i'm not choosing google search terms wisely.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -