ASControlNode(Subclassing) Category Reference
Declared in | ASControlNode+Subclasses.h |
---|
Overview
The subclass header ASControlNode+Subclasses defines methods to be overridden by custom nodes that subclass ASControlNode.
These methods should never be called directly by other classes.
– sendActionsForControlEvents:withEvent:
Sends action messages for the given control events.
- (void)sendActionsForControlEvents:(ASControlNodeEvent)controlEvents withEvent:(nullable UIEvent *)touchEvent
Parameters
controlEvents |
A bitmask whose set flags specify the control events for which action messages are sent. See “Control Events” in ASControlNode.h for bitmask constants. |
---|---|
touchEvent |
An event object encapsulating the information specific to the user event. |
Discussion
ASControlNode implements this method to send all action messages associated with controlEvents. The list of targets is constructed from prior invocations of addTarget:action:forControlEvents:.
Declared In
ASControlNode+Subclasses.h
– beginTrackingWithTouch:withEvent:
Sent to the control when tracking begins.
- (BOOL)beginTrackingWithTouch:(UITouch *)touch withEvent:(nullable UIEvent *)touchEvent
Parameters
touch |
The touch on the receiving control. |
---|---|
touchEvent |
An event object encapsulating the information specific to the user event. |
Return Value
YES if the receiver should respond continuously (respond when touch is dragged); NO otherwise.
Declared In
ASControlNode+Subclasses.h
– continueTrackingWithTouch:withEvent:
Sent continuously to the control as it tracks a touch within the control’s bounds.
- (BOOL)continueTrackingWithTouch:(UITouch *)touch withEvent:(nullable UIEvent *)touchEvent
Parameters
touch |
The touch on the receiving control. |
---|---|
touchEvent |
An event object encapsulating the information specific to the user event. |
Return Value
YES if touch tracking should continue; NO otherwise.
Declared In
ASControlNode+Subclasses.h
– cancelTrackingWithEvent:
Sent to the control when tracking should be cancelled.
- (void)cancelTrackingWithEvent:(nullable UIEvent *)touchEvent
Parameters
touchEvent |
An event object encapsulating the information specific to the user event. This parameter may be nil, indicating that the cancelation was caused by something other than an event, such as the display node being removed from its supernode. |
---|
Declared In
ASControlNode+Subclasses.h
– endTrackingWithTouch:withEvent:
Sent to the control when the last touch completely ends, telling it to stop tracking.
- (void)endTrackingWithTouch:(nullable UITouch *)touch withEvent:(nullable UIEvent *)touchEvent
Parameters
touch |
The touch that ended. |
---|---|
touchEvent |
An event object encapsulating the information specific to the user event. |
Declared In
ASControlNode+Subclasses.h
highlighted
Settable version of highlighted property.
@property (nonatomic, readwrite, assign, getter=isHighlighted) BOOL highlighted
Declared In
ASControlNode+Subclasses.h