I have a UIControl subclass for a custom slider type control (one that behaves differently from UISlider). At the moment I use my own target and action variables to send a message to the target whenever the slider value changes. But this doesn't play nice with Apple's UIControlEvent constants. I wasn't sure if I should use these, and if so, where can I put my custom "value changed" detection?
I overrode beginTrackingWithTouch: and continueTrackingWithTouch: to return YES but the action is never dispatched.
The user interface domain elements are used to describe the user interface of a software program. uicontrol. The <uicontrol> element is used to mark up user interface controls, such as names of buttons, entry fields, menu items, or other objects that allow the user to control the interface.
Overview. Views and controls are the visual building blocks of your app's user interface. Use them to draw and organize your app's content onscreen. Views can host other views.
Every time the value changes you call [self sendActionsForControlEvents:UIControlEventValueChanged]
and the control will handle the rest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With