How to customise UISlider height

后端 未结 9 1682
Happy的楠姐
Happy的楠姐 2020-12-06 05:42

I have project in which have to customise UISlider element. I wondering if someone knows how to change, or is it possible to change height of UISlide

9条回答
  •  孤街浪徒
    2020-12-06 06:07

    You should be able to subclass the UISlider and then implement:

    - (CGRect)trackRectForBounds:(CGRect)bounds
    

    Just return the new CGRect here.

提交回复
热议问题