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:
I hace setup
GMStepper
in myUITableViewCell
. IncellForRowAt 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: