Josue Espinosa Josue Espinosa - 29 days ago 18
iOS Question

Make UISlider height larger?

I've been searching for a way to make the

UISlider
progress bar taller, that is, increase the height. However, I haven't had any success. I don't want to use a custom image or anything, just make it taller, so the
UISlider
doesn't look so thin. Am I missing something super obvious?

Answer

I found what I was looking for. The following method just needs to be edited in a subclass.

- (CGRect)trackRectForBounds:(CGRect)bounds{
    CGRect customBounds = ...
    return customBounds;
}