Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MACloop

macrumors 6502
Original poster
May 18, 2009
393
0
Germany
Hi all!
I have a segmented control (style = bar) in my navigation bar defined as titleView like following code:
self.navigationItem.titleView = segmentedControl;

It works great but no matter how I change the tint color on the segmented control it always remains black. I would like to have it gray in order to inform the user where he is. How can I do that?

Thanks in advance,
MACloop
 
I take it that you have a black navigation bar. Items on a navigation controller bar take the tint color of the bar itself.
 
Did you set the barstyle to be uibarstyleblack... or did you use a tint color. I think the only way is to use the barstyle and then set the tint of the control. I know that is how the system style buttons are done for example the Blue done button.
 
Did you set the barstyle to be uibarstyleblack... or did you use a tint color. I think the only way is to use the barstyle and then set the tint of the control. I know that is how the system style buttons are done for example the Blue done button.
Yes I think I have (if I got it right?). I have done the following:

segmentedControl.tintColor = [UIColor grayColor];
localNavigationController.navigationBar.barStyle = UIBarStyleBlack;
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.