Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 10, 2008, 04:28 PM   #1
GregInAZ
macrumors newbie
 
Join Date: Aug 2008
UISegmentedControl black?

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.
__________________
24" iMac, 2.4 GHz, 4GB RAM, 1.25TB HD; 16GB iPhone 3G; 16GB iPod Touch
AppStoreHeat.com - App Store Updates & Price Changes
GregInAZ is offline   0 Reply With Quote
Old Aug 10, 2008, 07:07 PM   #2
GregInAZ
Thread Starter
macrumors newbie
 
Join Date: Aug 2008
In case anyone else runs into this, the color can be changed using the setTintColor property of the UISegmentedControl within code.
__________________
24" iMac, 2.4 GHz, 4GB RAM, 1.25TB HD; 16GB iPhone 3G; 16GB iPod Touch
AppStoreHeat.com - App Store Updates & Price Changes
GregInAZ is offline   0 Reply With Quote
Old Aug 15, 2008, 07:51 AM   #3
PhilNash
macrumors newbie
 
Join Date: Mar 2008
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?
PhilNash is offline   0 Reply With Quote
Old Sep 23, 2008, 05:20 PM   #4
Pring
macrumors 6502
 
Join Date: Sep 2003
Bit of gravedigging, but did you ever find the solution to this? I'm having the same problem.
__________________
Dardan Software
Neil Inglis' Blog
Check out Escape Pod and Alphonetic on iTunes!
Pring is offline   0 Reply With Quote
Old Sep 23, 2008, 05:28 PM   #5
Niiro13
macrumors 68000
 
Join Date: Feb 2008
Location: Illinois
Send a message via AIM to Niiro13 Send a message via MSN to Niiro13 Send a message via Yahoo to Niiro13
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 .

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.
Niiro13 is offline   0 Reply With Quote
Old Sep 23, 2008, 05:33 PM   #6
Pring
macrumors 6502
 
Join Date: Sep 2003
/facepalm, I'm not exactly on the ball today!

Makes perfect sense, thanks for the prompt response.
__________________
Dardan Software
Neil Inglis' Blog
Check out Escape Pod and Alphonetic on iTunes!
Pring is offline   0 Reply With Quote
Old Nov 3, 2008, 12:21 PM   #7
fenrus110
macrumors regular
 
Join Date: Mar 2008
I have a black translucent navigation bar. I used [UIColor clearColor] for the tint, it looks pretty slick.
fenrus110 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Black iPhone 5S to Match Retina MacBook (black screeen) and Black iPad Mini..or GOLD? Chuck-Norris iPhone 56 Dec 31, 2013 04:36 PM
Iphone 5S screen turns black, I can see backlight and hear sounds, but just black. Korican100 iPhone 1 Oct 11, 2013 03:55 AM

Forum Jump

All times are GMT -5. The time now is 08:12 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC