title: How to build the UISlider automatic slide by itself in Swift?
body: <p>In purpose, I want to set the <code>UISlider</code> will auto slide by self to use in video player.
  I try to find the solution by research and follow that code, but it's still not work. Everyone have any solution with this here is my code.</p>
  
  <pre><code>override func awakeFromNib() {
        self.sldTime.maximumValue = 10
        self.sldTime.minimumValue = 0
        self.sldTime.continuous = true
        self.sldTime.addTarget(self, action: #selector(self.sliderAutoChange), forControlEvents: .ValueChanged)
  }
  
  func sliderAutoChange() {
      let index = Float(self.sldTime.value + 1)   // increase by 1
      self.sldTime.setValue(index, animated: false)
      print("index \(index)")
  } 
  </code></pre>
  
  <p>When I debug it, it seem like the <strong>sliderAutoChange()</strong> function do not call.</p>