I've a UIWebView. Everything is fine if I don't add navigation controller. But If I add, a dark grey layer on the top of my uiwebview appears. I don't understand what is wrong, I'm just adding a uiwebview and haven't written a line of code about sizing or layout.
Asked
Active
Viewed 278 times
2 Answers
0
This is probably because your navigation bar's translucent property is set to YES. Set it to NO and the dark grey background will go away.

Abby Thompson
- 83
- 6
0
You can hide that navigation bar by adding this:
self.navigationController?.isNavigationBarHidden = true
to the view controller's ViewDidLoad()

Tony Adams
- 691
- 1
- 9
- 29