0

What's the best way to create controls like this?

enter image description here

I'm assuming it's an NSSegmentedControl and I have to subclass the cell? But wanted to get a second opinion. Thanks,

rc

Note: the lighter control is from Twitter Mac and the darker are from Rapidweaver.

j0k
  • 22,600
  • 28
  • 79
  • 90
rick
  • 451
  • 3
  • 13

2 Answers2

-1

ANSegmentedControl

OR

Take one UIImageView, and

  • set default look image
  • put transparent buttons on each segment
  • on button action, change the UIImageView image to selected button and perform action.
prashant
  • 1,920
  • 14
  • 26
-2

enter image description here

  1. First take one UIImageView and get the three images for each tab selected.
  2. on UIImageView place three UILabels for title
  3. On each segment put UIButton button with custom style
  4. When you click on any button

    1. change UIImageView image to selected segment
    2. Change the UILabel color to whatever you want to highlight
    3. Perform action you want to do
j0k
  • 22,600
  • 28
  • 79
  • 90
prashant
  • 1,920
  • 14
  • 26