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?

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?

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