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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -