UISegmentedControl in SDK 3.0, want white text instead of grey text

Discussion in 'iPhone/iPad Programming' started by fenrus110, May 8, 2009.

  1. macrumors regular

    Joined:
    Mar 24, 2008
    #1
    I have a UISegmentedControl (BarStyle) in my UINavigationController in SDK 3.0. It just has 2 buttons, Save and Cancel. So it doesn't really switch states cuz it closes once it is touched.

    In SDK 3.0, I find the text is a grey color rather than white.

    I played around with it, the only way I can get the text white is to set the selectedSegmentIndex to one of the values. Of course, this leaves one grey and one white, that's no good. Though, I'm not sure if it will screw my up delegate code...

    Any suggestions on getting white text? FYI, I'm using a BlackOpaque UINavigationController.
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Sounds to me like you are using a segmented control for something other than its intended purpose. That's probably a violation of the Mobile HIG.
     
  3. thread starter macrumors regular

    Joined:
    Mar 24, 2008
    #3
    There's nothing wrong with using them as plain buttons. Especially when I set the momentary = YES. But anyways, to illustrate, the top is 2.0, the bottom is 3.0. I just want the white text cuz it looks better.

    [​IMG]
     
  4. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Hmm, alright. Sounds like you've found a bug with the 3.0 version of the segmented control. I would suggest submitting a bug report to Apple.
     

Share This Page