GMStepper icon indicating copy to clipboard operation
GMStepper copied to clipboard

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

Open kapoorsahil opened this issue 8 years ago • 3 comments

kapoorsahil avatar Feb 19 '16 09:02 kapoorsahil

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.

gmertk avatar Feb 19 '16 21:02 gmertk

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.

kapoorsahil avatar Feb 23 '16 06:02 kapoorsahil

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

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

omarshamali avatar Mar 31 '19 12:03 omarshamali