Thursday, 29 August 2013

UIProgressView with custom ProgressImage stretched incorrectly. How to fix?

UIProgressView with custom ProgressImage stretched incorrectly. How to fix?

I' m trying to customize UIProgressView with custom progress image. But it
is stretched incorrectly. So i have a custom progress image :
its dimensions are 75x18 pixels. And I have a track which length is 270
points. But when I set my progress image its corner radius after filling
the track became wrong. I tried to set resizableImageWithCapInsets:
UIEdgeInsetsMake (0,0,0,1) but then image began to repeat and not to
stretch. How can I fix this?

No comments:

Post a Comment