UISegmentedController: changing selected segment programmatically

Discussion in 'iPhone/iPad Programming' started by milktooth, Oct 30, 2009.

  1. macrumors member

    Oct 30, 2009
    How do I change the selected segment?
  2. Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    1. It's actually a UISegmentedControl
    2. Read the UISegmentedControl Class Reference.
    3. Pay close attention to the Properties section.
    Hope that helps.
  3. thread starter macrumors member

    Oct 30, 2009
    Thanks for the help.

    Turns out I was doing it right all along. Not sure what went wrong but removing and reconnecting the outlet in IB did the trick.

Share This Page