How can I send a "UIControlEventValueChanged" event from my custom control? How can I send a "UIControlEventValueChanged" event from my custom control? ios ios

How can I send a "UIControlEventValueChanged" event from my custom control?


Assuming your custom control extends UIControl, then you simply do:

[self sendActionsForControlEvents:UIControlEventValueChanged];

This will call all registered targets (via addTarget:action:forControlEvents: that this event has happened.

Use this function where you deem should trigger a value has changed