0

I'm trying to make a uisegmentcontrol where the selected colour is something other than blue. Also I would like to change the style like the image below. Is any of these two things possible and how do you do it?

enter image description here

user1898829
  • 3,437
  • 6
  • 34
  • 62
  • 1
    possible duplicate of [How to change UISegmentcontrol font and selected segment colour?](http://stackoverflow.com/questions/8426760/how-to-change-uisegmentcontrol-font-and-selected-segment-colour) – Tarek Hallak Aug 13 '13 at 19:51

1 Answers1

0

The easiest way to do this is with custom images using the UISegmentedControl instance methods such as setWidth:forSegmentAtIndex:, setImage:forSegmentAtIndex: and setDividerImage:forLeftSegmentState:rightSegmentState:barMetrics

You could also just use UIButtons to mimic the behavior of a UISegmentedControl

Chris Tetreault
  • 1,973
  • 13
  • 19