Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stepper value changed from 1 #30

Closed
ibhavin opened this issue Jan 11, 2017 · 2 comments
Closed

Stepper value changed from 1 #30

ibhavin opened this issue Jan 11, 2017 · 2 comments

Comments

@ibhavin
Copy link

ibhavin commented Jan 11, 2017

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
Copy link
Author

ibhavin commented Jan 11, 2017

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

@ibhavin ibhavin closed this as completed Jan 11, 2017
@moderateepheezy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants