title: how can I change the default values for UISlider in a custom subclass of UISlider so I can reuse it multiple times
body: <p>At the moment I'm subclassing a <code>UISlider</code> and in the <code>drawRect</code> setting the default values. I'm getting a strange result.</p>
  
  <p>The slider min image is at the correct position but the slider max image has white space on the left. The slider image in the middle is to far right and the colour for <code>maximumTackTintColor</code> is on both sides of the slider.</p>
  
  <pre><code>- (void)drawRect:(CGRect)rect
  {
      // Drawing code
      self.minimumTrackTintColor = [ThemeManager minimumTrackTintColorForSlider];
      self.maximumTrackTintColor = [ThemeManager maximumTrackTintColorForSlider];
      self.minimumValueImage = [UIImage imageNamed:@"sliderLeftDot"];
      self.maximumValueImage = [UIImage imageNamed:@"sliderRightDot"];
  
      [self setThumbImage:[UIImage imageNamed:@"sliderCentrePiece"] forState:UIControlStateNormal];
  
  }
  </code></pre>