Reputation: 2934
I have several UIViewControllers in a UITabBarController.
In each UIViewController's viewDidLoad method I include this line:
self.navigationController.navigationBar.translucent = NO;
Is there a setting in Storyboard that can do the same?
Upvotes: 1
Views: 5858
Reputation: 445
I couldn't do this on storyboard (Xcode 8, iOS 10), instead I used a custom navigationBar and overriding the awakeFromNib:
-(void)awakeFromNib
{
[self setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
self.shadowImage = [UIImage new];
self.translucent = YES;
}
Upvotes: 0
Reputation: 402
Yes, you can change the navigation bar of the navigation controller, just select it in the document outline, check this iOS7 nav bar translucent = NO
Upvotes: 1