user2689159
user2689159

Reputation: 11

how to customise UISegmentedControl items

how to customise UISegmentedControl items with different type of orders instead of rectangular images and changing the image for selected state.

Upvotes: 1

Views: 105

Answers (3)

MrTristan
MrTristan

Reputation: 740

i use PLSegmentView available from here. It allows you to simply swap out the regular UISegmentedControl and supply an image for each of the two states for each segment. works well.

Upvotes: 0

Mrunal
Mrunal

Reputation: 14118

Refer Apple Documentation: UISegmentedControl. Apple has already given documentation for customizing this control.

Apart from this, here are few other tutorial links:

http://techblog.chegg.com/2013/01/11/customizing-appearance-of-uisegmentedcontrol/

http://www.raywenderlich.com/21703/user-interface-customization-in-ios-6

Hope this helps.

Upvotes: 0

warpedspeed
warpedspeed

Reputation: 1098

You can set the background image using an UIImage.

- (void)setBackgroundImage:(UIImage *)backgroundImage forState:(UIControlState)state barMetrics:(UIBarMetrics)barMetrics

There's a great tutorial available here: http://www.raywenderlich.com/21703/user-interface-customization-in-ios-6

Upvotes: 1

Related Questions