title: Why isn't UIProgressview progress bar resizable?
body: <p>From Bavarious' question about <a href="https://stackoverflow.com/questions/7980891/uiprogressview-and-custom-track-and-progress-images-ios-5-properties/7981853#comment13940084_7981853">UIProgressViews here:</a></p>
  
  <p>I tried implementing what Dave DeLong said and I did everything the exact way he showed in his example, but when I run the program, my progress bar becomes a stretched image if I try changing the value of the progress. The track image however resizes perfectly and repeats along the track. For some reason, the progress isn't doing this along the progress bar. </p>
  
  <pre><code>UIImage * load = [[UIImage imagedNamed:@"load.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 1, 0, 1)];
  UIImage * track = [[UIImage imageNamed:@"track.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 1, 0, 1)]; 
  [progressbar progressImage:load];
  [progressbar trackImage:track];
  [progressbar setProgress:0.5];
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/EsSKQ.png" alt="Original images and progress bar results"></p>
  
  <p>I tried switching my image variables from the progress image to the track image to see if maybe it was the image that wasn't resizable (which it shouldn't have been because they were the exact same image, just different colors). Except when I did this, the track image again resized perfectly and the progress image was the one that stretched. Does anyone know why this may be happening?</p>