ios - change color of custom uibarbuttonitem (iOS7) -


i have 5 uibarbuttonitems , change color of 2. how can in xcode 5?

thanks lot answering!

what have add code in appdelegate.m ?

[[uinavigationbar appearance] setbartintcolor:uicolorfromrgb (0x34aadc)];  [[uiapplication sharedapplication] setstatusbarstyle: uistatusbarstylelightcontent];  [[uinavigationbar appearance] settitletextattributes:@{nsforegroundcolorattributename : [uicolor whitecolor]}];  [[uibarbuttonitem appearance] settintcolor:[uicolor whitecolor]];  [[uinavigationbar appearance] settintcolor:[uicolor whitecolor]];  [[uitoolbar appearance] setbartintcolor:uicolorfromrgb (0x34aadc)]; 

there method follows:

[[uibarbuttonitem appearancewhencontainedin:[<the class in want set custom color> class], nil] settintcolor:<mycolor>]; 

Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -