title: Changing UISlider Images with Swift
body: <p>I'm trying to change the default images for UISliders with Swift. I'm editing <code>didFinishLaunchingWithOptions</code> in <code>AppDelegate</code>.</p>
  
  <p>In Objective C you would do this:</p>
  
  <pre><code>UIImage *maxImage = [UIImage imageNamed:@"slider-track.png"];
  [[UISlider appearance] setMaximumTrackImage:maxImage forState:UIControlStateNormal];
  </code></pre>
  
  <p>I've tried converting to Swift but have not been successful:</p>
  
  <pre><code>var maxImage:UIImage = UIImage (named:"slider-track.png")
  UISlider.setMaximumTrackImage(image: maxImage, forState: UIControlStateNormal)
  </code></pre>
  
  <p>The first line is fine, but the second gives an error. </p>
  
  <p>What is the correct syntax for the second line?</p>
  
  <p>Thanks</p>