I have a slider and label in my swift project. On the storyboard, I control dragged my slider onto my controller class for that page and created an outlet and also an action
Update the slider value in Main queue
@IBAction func sliderValueChanged(sender: UISlider) { var currentValue = Int(sender.value) println("Slider changing to \(currentValue) ?") dispatch_async(dispatch_get_main_queue(){ sliderVal.text = "\(currentValue) Km" }) }
I hope this is helpful to you.