UIStepper action with apply the value to the label iOS swift
Solution:
I had connected the stepper for action with change value.While user clicks + or - action then it will be apply the value to the stepperlabel using the below code.Stepper don't had any label you have to connect with other one.
@IBAction func didTaponStepper(_ sender: Any) {
stepperLabel.text = (sender as! UIStepper).value.description
}
Comments
Post a Comment