写个类继承于UISlider, 重写方法 :
-(CGRect)trackRectForBounds:(CGRect)bounds{
if (_sliderHight == 0.00) {
_sliderHight = 4;
}
return CGRectMake(0, 0, self.frame.size.width, _sliderHight);
}
写个类继承于UISlider, 重写方法 :
-(CGRect)trackRectForBounds:(CGRect)bounds{
if (_sliderHight == 0.00) {
_sliderHight = 4;
}
return CGRectMake(0, 0, self.frame.size.width, _sliderHight);
}
本文标题:UISlider 改变滑杆的高度
本文链接:https://www.haomeiwen.com/subject/xfmhjxtx.html
网友评论