title: Change UISlider background with code
body: <p>I have created a <code>UISlider</code> , and i want to change its look .
  I dont want to change its image with my own, like this one 
  <a href="https://stackoverflow.com/questions/2379326/change-iphone-uislider-bar-image">Change iPhone UISlider bar image</a></p>
  
  <p>but, to create an <code>elliptical UIView</code> of my own,in code, and set it instead of the current slider thin line, than instead of the moving circle button, create a <code>circle UIView</code> in code, and replace it also.</p>
  
  <p>I know i can set their images ,</p>
  
  <pre><code>[self setThumbImage:[UIImage imageNamed:@"switchThumb.png"] forState:UIControlStateNormal];
      [self setMinimumTrackImage:[UIImage imageNamed:@"switchBlueBg.png"] forState:UIControlStateNormal];
      [self setMaximumTrackImage:[UIImage imageNamed:@"switchOffPlain.png"] forState:UIControlStateNormal];
  </code></pre>
  
  <p>but how do i set my own costume uiview ?</p>