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

Delegate method for "valueDidUpdate:" and "valueShouldUpdate:" #20

Open
kapoorsahil opened this issue Feb 19, 2016 · 3 comments
Open

Delegate method for "valueDidUpdate:" and "valueShouldUpdate:" #20

kapoorsahil opened this issue Feb 19, 2016 · 3 comments

Comments

@kapoorsahil
Copy link

No description provided.

@gmertk
Copy link
Owner

gmertk commented Feb 19, 2016

Hi @kapoorsahil are you asking for these delegate methods?

I am not thinking to add delegate. This stepper is a subclass of UIControl and you can use target action.

@kapoorsahil
Copy link
Author

The target action is not a public method, hence can't be overridden when used via pods. I might be wrong, let me the the correct way to use it.

@omarshamali
Copy link

quantity.addTarget(self, action: #selector(fafa), for: UIControl.Event.valueChanged)

@objc func fafa(){
print("yea")
}

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

3 participants