ios - Presented UINavigationController tint color not changing -


    myvc *vc = [[myvc alloc] init]; vc.delegate = self;  uinavigationcontroller *nc = [[uinavigationcontroller alloc] initwithrootviewcontroller:vc]; [nc.navigationbar settintcolor:[uicolor redcolor]]; [self presentviewcontroller:nc animated:true completion:^{}]; 

the navigation bar black. present navigation controller inside tab bar controller created in app delegate. in applicationdidfinishlaunchingwithoptions, can control color of navigation controllers there.

why navigation controller tint bar black?

[[uinavigationbar appearance] settintcolor:[uicolor redcolor]]; 

i suggest use if of navigationbars same color. appearance property of object sets uniformity on function apply on it.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -