Change appearance of UIStepper

后端 未结 6 1870
长情又很酷
长情又很酷 2020-12-19 06:50

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 cont

6条回答
  •  我在风中等你
    2020-12-19 07:02

    Here is solution that works for me.

    Platform iOS 7.1

    [stepper setBackgroundImage:[UIImage new] forState:UIControlStateNormal];
    [stepper setDividerImage:[UIImage new] forLeftSegmentState:UIControlStateNormal rightSegmentState:UIControlStateNormal];
    

    The result is only increment, decrement images are visible.

提交回复
热议问题