title: Custom UISlider Image Stuck
body: <p>Why does the slider image stick at the point where it was loaded?</p>
  
  <p>This is my code:</p>
  
  <pre><code>for (UISlider *slider in volumeSlider.subviews) {
      if ([slider isKindOfClass:[UISlider class]]) {
          [slider setMinimumTrackImage:[[UIImage imageNamed:@"sliderMax.png"] stretchableImageWithLeftCapWidth:10.0 topCapHeight:0.0] forState:UIControlStateNormal ];
          [slider setMaximumTrackImage:[[UIImage imageNamed:@"sliderMin.png"] stretchableImageWithLeftCapWidth:10.0 topCapHeight:0.0] forState:UIControlStateNormal ];
          [slider setThumbImage:[UIImage imageNamed:@"thumbSlider.png"] forState:UIControlStateNormal];
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/6DsI0.png" alt="enter image description here"></p>