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
Post a Comment