I am using Swift 3
and Xcode 8.2.
Pretty new at Swift.
I have a horizontal UISlider
to control the volume from 1 to 16 as min and max value, and it's returning float values when I do print()
. How can I restrict it's value to an integer?
@IBOutlet var ringValue: UISlider!
@IBAction func ringVolumeSliderChange(_ sender: UISlider)
{
print(sender.value)
}
Thanks in advance!