UIProgressView custom track and progress images in iOS 7.1

This is very annoying. I didn’t find a way to fix this without subclassing UIProgressView.

Anyway here’s how I fixed this: https://gist.github.com/JohnEstropia/9482567

You will have to change occurrences of UIProgressView to JEProgressView, including those in NIBs and storyboards.

Basically, you’d need to force assigning the images directly to the UIProgressView‘s children UIImageViews.

The subclass is needed to override layoutSubviews, where you adjust the heights of the imageViews according to the image sizes.

Leave a Comment