Customize UISlider (track image height)
问题 I'm customizing a UISlider . I could set a custom thumb image that is higher than the usual thumb however I could not make the track higher when setting a higher minimum track image but the track height remained the same. It should be possible as in the iPod/Music App on the iPad the volume slider is also higher as the usual slider as you can see here: (source: cocoia.com) 回答1: You need to subclass the slider and override the trackRectForBounds: method, like this: - (CGRect)trackRectForBounds