Changing the navigation bar color on the Edit Plus section screen

微信扫一扫,分享到朋友圈

Changing the navigation bar color on the Edit Plus section screen

I am able to change the navbar color of the More navigationcontroller via:

stTabBarController.moreNavigationController.navigationBar.tintColor = [UIColor colorWithRed:(102.0/255.0) green:(20.0/255.0) blue:(11.0/255.0) alpha:1];

but when I click the Edit button, the Configure screen appears and the navbar color is the default blue. How can I change this color?

Solved it:

#pragma mark UITabBarControllerDelegate
- (void)tabBarController:(UITabBarController *)controller willBeginCustomizingViewControllers:(NSArray *)viewControllers {
    UIView *editViews = [controller.view.subviews objectAtIndex:1];
    UINavigationBar *editModalNavBar = [editViews.subviews objectAtIndex:0];

    editModalNavBar.tintColor = [UIColor colorWithRed:(102.0/255.0) green:(20.0/255.0) blue:(11.0/255.0) alpha:1];

}

微信扫一扫,分享到朋友圈

Changing the navigation bar color on the Edit Plus section screen

JS feature detection to detect the usage of -webkit-calc over calc

上一篇

Svn repository url

下一篇

你也可能喜欢

Changing the navigation bar color on the Edit Plus section screen

长按储存图像,分享给朋友