Every time a stepper is pressed, how do you add 1 or subtract 1 from an Int.
This is the action of the stepper.
@IBAction func stepper(sender: AnyObject) {
self.numberLabel.text = "\(Int(stepper.value))"
totalTextField.text += "1"
}
There is a error totalTextField.text
.
The error is "string" is not identical to 'CGFloat'.
Thanks