I am trying to make my status bar background color the same as my navigation bar, I was trying to find the answer in google but it does not work clearly for me... Can you please explain how it works and how can I fix it?
It looks to me like you have a UINavigationBar
up there, which is what's causing the gap at the top. If you are able to, embed your view controller in a UINavigationController
instead, then set your navigation item buttons in code. This gives you the same effect, but also automatically ensures the status bar matches the look of its navigation bar.