UIProgressView: How to resize using the progress and track image properties?
<p>I want to create a custom UIProgressView that uses progress and track images that are larger than the default dimensions of a UIProgressView created in IB. </p>

<p>Using the progressImage  and trackImage properties works great. I just don't know how to use larger images in conjunction with getting the UIProgressView to be a larger size? (Say 40 px high). That is to say, no matter what size I make the images, the control also stays the same size. I suspect, I don't know how to resize it properly? When I tried to just change the frame that didn't seem to make a difference.</p>

<pre><code>//set the images
UIImage *greenImage = [[UIImage imageNamed:@"ProgressGreenImage20.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 1, 0, 1)];
UIImage *redImage = [[UIImage imageNamed:@"ProgressRedImage20.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 1, 0, 1)];
progressBar.trackImage = greenImage;
progressBar.progressImage = redImage;
</code></pre>
