Search code examples
objective-ciosios5

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!


Solution

  • You cannot presently do this. You'll have to write a custom UIControl object if you want to customize the icons.

    From the UIStepper Class Reference, the only parameters you can change are

      continuous  property
      autorepeat  property
      wraps  property
      minimumValue  property
      maximumValue  property
      stepValue  property
    
      value  property
    

    You cannot customize the icons.

    However, since it is a subclass of UIView, you can try changing the backgroundColor.