ios - How do I set a different UITabBar.tintColor for every icon when selected? -
i have 4 icons. want them have different "highlight" color when selected.
how can achieve this?
in viewwillappear
in presentedvc:
override func viewwillappear(animated: bool) { self.tabbarcontroller.tabbar.tintcolor = uicolor.redcolor() super.viewwillappear(animated) }
in other ones, different color.
Comments
Post a Comment