I like to create a UISegmentedControl that looks like the scope button in UISearchBar.
Try this:
mySegmentedBar.segmentedControlStyle = 7;
It's undocumented, but seems to pass App Store review.