How to make a UIView that can cover the navigation bar?

DNB5brims picture DNB5brims · Aug 18, 2010 · Viewed 15.6k times · Source

I want to show the UIView in full screen, but show the status bar, other things, like the navigation bar need to cover by the UIView.

How can I do that ?

Answer

Byte picture Byte · Dec 15, 2011

I believe what he was asking was how to make a UIView cover the entire screen (sort of like custom pop up). This is precisely how I ended up here. So I will offer my solution. Call this function anywhere.

[self.navigationController.view addSubview:yourUIView];

Here the view you introduced cover over the whole screen unlike

[self.view addSubview:yourUIView]; 

Whereby, the navigation bar is uncovered.