Search code examples
uinavigationcontrolleruitabbar

How do you dynamically update the color of a UITabBar from within the app


Once the app has launched, if I want to allow a user to change the tint color of the UITabBar (or NavigationController) how do I do that ?

Is there a refresh for a TabBar?


Solution

  • I was able to create the effect that I as looking for by using this code:

        [UIView animateWithDuration:0.25 animations:^{
        [self.navigationController.navigationBar setBarTintColor:someColor];
    }];