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 asUIStepper).value.description

    }

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

store cgpoint in userdefaults iOS swift