gmertk / GMStepper

A stepper with a sliding label in the middle.
https://github.com/gmertk/GMStepper
MIT License
924 stars 115 forks source link

Stepper value changed from 1 #30

Closed ibhavin closed 7 years ago

ibhavin commented 7 years ago

I hace setup GMStepper in my UITableViewCell. In cellForRowAt indexPath method I am setting its textlable value like this: cell.stepper.label.text = String(receive_Cart[indexPath.row].quantity) value is displaying correctly.

But when I changed its value by + or - it is not changing relative to value which I set in cellForRowAt indexPath.

Example: The stepper label is set to 3. I have press + it should display 4 but it is displaying 2

I have made a delegate of cell and function for stepper:

func stepperValueChanged(cell: CartCell) {

    }
ibhavin commented 7 years ago

Can we know which button pressed plus button or minus button?

moderateepheezy commented 7 years ago

@ibhavin how did you solve the issue of knowing which button pressed plus button or minus button?