Search code examples
iphoneiosobjective-cuiprogressview

Custom UIProgressView


I'm using a UIProgressView in my application, which is working great right now. But I want to make it larger (height-wise) and color it a different color.

I'm looking to use PDColoredProgressView for the color, and alter the -(void)drawRect:(CGRect)rect method to change the height, however I can't decide where I would actually alter the height. Any suggestions on what to change?


Solution

  • So it turns out you can resize it like any other view.

    [coloredProgressView setFrame:CGRectMake(0, 0, 300, 25)];