I’m trying to recreated an interface similar to the app store, using a navigation bar with a segmented control directly below it. I have the controller and all associated views working perfectly; my problem is that I would like to match the color of my segmented controller to the same color that apple uses in the store. How would I go about achieving this? I’ve experimented with colorWithRed:green:blue:alpha but with little success. Thanks.

You can use:
however it is possible that this will be rejected from the App Store, although I have heard of apps that got through perfectly alright, you will have to make sure though that updates to iOS don’t change the number from 7.
Alternatively you set the bar style to
UISegmentedControlStyleBarand add a UIImageView behind it with and 1x44px screenshot of the edge of the blue background:The result is not identical, but you won’t notice unless you directly compare them next to each other.