title: Dynamic UISlider - Image is not showing
body: <p>I have created a UISlider with images dynamically using the below code and but the resultant UI is showing only the default UISlider. Please anyone tell me, why the images are not showing on the slider. (UISlider is loaded on a UIView class which also created dynamically)</p>
  
  <pre><code>self.slider = [[UISlider alloc] initWithFrame:CGRectMake(40.0, 0.0, self.frame.size.width * 80.0/100.0, frame.size.height)];
  self.slider.minimumValue = minValue;
  self.slider.maximumValue = maxValue;
  self.slider.backgroundColor = [UIColor clearColor];
  [self.slider setThumbImage:[UIImage imageNamed:@"slider_tab.png"]
                    forState:UIControlStateNormal];
  [self.slider setThumbImage:[UIImage imageNamed:@"slider_tab.png"]
                    forState:UIControlStateHighlighted];
  [self.slider setMinimumTrackImage:[UIImage imageNamed:@"slider_minimum.png"]
                           forState:UIControlStateNormal];
  [self.slider setMaximumTrackImage:[UIImage imageNamed:@"slider_maximum.png"]
                           forState:UIControlStateNormal];
  self.slider.continuous = NO;
  [self.slider addTarget:self action:@selector(SliderChanged:)    forControlEvents:UIControlEventValueChanged];
  [self addSubview:self.slider];
  </code></pre>
  
  <p>Thanks in advance.</p>