Jonathan.
Jonathan.

Reputation: 55544

UISegmentedControl like in iTunes/App Store apps

I'm trying to get a UISegmentedControl like is in the iTunes app and App store app, where you select between Top Paid, Top Free and Top Grossing, its a bar style except more blue. It goes above a table view

Upvotes: 2

Views: 863

Answers (2)

BastiBen
BastiBen

Reputation: 19860

Use the normal UISegmentedControl class and use the property to change the style as needed.

(See Style popup menu on the right!)

screenshot

You can also set the segmentedControlStyle property of the control to one of the following values:

typedef enum {
   UISegmentedControlStylePlain,
   UISegmentedControlStyleBordered,
   UISegmentedControlStyleBar,
   UISegmentedControlStyleBezeled,
} UISegmentedControlStyle;

Upvotes: 4

Mark Adams
Mark Adams

Reputation: 30846

segmentedControl.segmentedControlStyle = 7;

Upvotes: 0

Related Questions