Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change appearance of UIStepper

UIStepper is very convenient but I want to change the appearance of it, I need to have customized icon not the plus and minus and also I want to change the color of the control. How can I achieve this? Thanks in advance!

like image 280
Sharlon M. Balbalosa Avatar asked Jan 06 '12 18:01

Sharlon M. Balbalosa


1 Answers

As of iOS 6.0 you can use - (UIImage *)decrementImageForState:(UIControlState)state and - (UIImage *)incrementImageForState:(UIControlState)state to change the labels on the UIStepper control.

This works for iOS 6.0:

[_stepper setDecrementImage:[UIImage imageNamed:@"decrementIcon.png"] forState:UIControlStateNormal];

like image 64
Chris Samuels Avatar answered Oct 07 '22 20:10

Chris Samuels