As the title said, after I use self.edgesForExtendedLayout = UIRectEdgeNone;
,
I want to set the navigation bar to transparent. I use the code like this:
[self.navigationController.navigationBar setBackgroundImage:[UIImage new]
forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
self.navigationController.navigationBar.shadowImage = [UIImage new];
But it doesn't work. The navigation bar is shown black. How should I make the navigation bar transparent?