View Full Version : UISegmentedControl black?
GregInAZ
Aug 10, 2008, 05:28 PM
My navigation controller is set to black, but the UISegmenteedControl is being displayed as the default blue. Buttons I add to my navigation controller turn black, this just won't. Is there a way to make it black? I'm using IB to create the interface.
GregInAZ
Aug 10, 2008, 08:07 PM
In case anyone else runs into this, the color can be changed using the setTintColor property of the UISegmentedControl within code.
PhilNash
Aug 15, 2008, 08:51 AM
I've been doing this with my segmented view set to bar style, and I find that when tinted black the buttons don't work (don't change shade when you select them), but leaving them to the default blue tint works fine.
Anyone else seen this/ know a workaround?
Pring
Sep 23, 2008, 06:20 PM
Bit of gravedigging, but did you ever find the solution to this? I'm having the same problem.
Niiro13
Sep 23, 2008, 06:28 PM
The main problem is that when they're black, there's no "darker" color of black. So all the segments are the same color.
What you can do is imagine how it would look. Then go and make your segmented control dark gray :p.
To the OP, there's no way to tint them in IB which is really weird. You'd have to do it programatically through the tintColor property.
Set it to a dark gray color and then it should work fine.
Pring
Sep 23, 2008, 06:33 PM
/facepalm, I'm not exactly on the ball today!
Makes perfect sense, thanks for the prompt response.
fenrus110
Nov 3, 2008, 01:21 PM
I have a black translucent navigation bar. I used [UIColor clearColor] for the tint, it looks pretty slick.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.