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.
in ios7 device, button first shows blue.
when tap on it, button becomes orange.
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
Post a Comment