gmertk / GMStepper

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

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

Open kapoorsahil opened 8 years ago

gmertk commented 8 years ago

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 commented 8 years ago

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 commented 5 years ago

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

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