ios - UIBarButtonItem tint not working in 6.1 app on iOS7 device -


i have view controller adds button navigation bar orange tint color.

uibarbuttonitem *bt = [[uibarbuttonitem alloc]                        initwithtitle:@"call us" style:uibarbuttonitemstyleplain target:self action:@selector(calluspressed:)];  bt.tintcolor = [uicolor colorwithred:(247/255.0) green:(151/255.0) blue:(48/255.0) alpha:1.0];  self.navigationitem.rightbarbuttonitem = bt; 

this works fine in ios6.1 device. is, button shows orange.

enter image description here

in ios7 device, button first shows blue.

enter image description here

when tap on it, button becomes orange.

enter image description here

the app compiled against ios 6.1 sdk. bug in ios7 or doing wrong.

this appears bug in ios 7's handling of ios 6.1 ui elements. i've tried number of ways , cannot reliably set uibarbuttonitem tint color. setting color after added navigation item in viewdidload works first screen not later screens. can in viewdidappear: end blue during animation.

your best bet set tint color on navigation bar itself, , if need bar different, set background image.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -