UIControl$Methods extension
- on
Properties
- allControlEvents → UIControlEvents
-
Available on UIControl, provided by the UIControl$Methods extension
allControlEventsno setter - allTargets → NSSet
-
Available on UIControl, provided by the UIControl$Methods extension
allTargetsno setter - contentHorizontalAlignment ↔ UIControlContentHorizontalAlignment
-
Available on UIControl, provided by the UIControl$Methods extension
contentHorizontalAlignmentgetter/setter pair - contentVerticalAlignment ↔ UIControlContentVerticalAlignment
-
Available on UIControl, provided by the UIControl$Methods extension
contentVerticalAlignmentgetter/setter pair - contextMenuInteraction → UIContextMenuInteraction?
-
Available on UIControl, provided by the UIControl$Methods extension
Returns a UIContextMenuInteraction with this control set as its delegate. Before constructing the UIContextMenuInteraction, UIControl verifies 'self' is a viable delegate. See 'Implementing UIControl Menus' below for more details.no setter - contextMenuInteractionEnabled ↔ bool
-
Available on UIControl, provided by the UIControl$Methods extension
Specifies if the context menu interaction is enabled. NO by default.getter/setter pair - effectiveContentHorizontalAlignment → UIControlContentHorizontalAlignment
-
Available on UIControl, provided by the UIControl$Methods extension
effectiveContentHorizontalAlignmentno setter - enabled ↔ bool
-
Available on UIControl, provided by the UIControl$Methods extension
isEnabledgetter/setter pair - highlighted ↔ bool
-
Available on UIControl, provided by the UIControl$Methods extension
isHighlightedgetter/setter pair - selected ↔ bool
-
Available on UIControl, provided by the UIControl$Methods extension
isSelectedgetter/setter pair - showsMenuAsPrimaryAction ↔ bool
-
Available on UIControl, provided by the UIControl$Methods extension
If the contextMenuInteraction is the primary action of the control, invoked on touch-down. NO by default.getter/setter pair - state → UIControlState
-
Available on UIControl, provided by the UIControl$Methods extension
stateno setter - toolTip ↔ NSString?
-
Available on UIControl, provided by the UIControl$Methods extension
Assigning a value to this property causes the tool tip to be displayed for the view. Setting the property to nil cancels the display of the tool tip for the view.getter/setter pair - toolTipInteraction → UIToolTipInteraction?
-
Available on UIControl, provided by the UIControl$Methods extension
Returns the control's default UIToolTipInteraction.no setter - touchInside → bool
-
Available on UIControl, provided by the UIControl$Methods extension
isTouchInsideno setter - tracking → bool
-
Available on UIControl, provided by the UIControl$Methods extension
isTrackingno setter
Methods
-
actionsForTarget(
ObjCObjectBase? target, {required UIControlEvents forControlEvent}) → NSArray? -
Available on UIControl, provided by the UIControl$Methods extension
actionsForTarget:forControlEvent: -
addAction(
UIAction action, {required UIControlEvents forControlEvents}) → void -
Available on UIControl, provided by the UIControl$Methods extension
Adds the UIAction to a given event. UIActions are uniqued based on their identifier, and subsequent actions with the same identifier replace previously added actions. You may add multiple UIActions for corresponding controlEvents, and you may add the same action to multiple controlEvents. -
addTarget(
ObjCObjectBase? target, {required Pointer< ObjCSelector> action, required UIControlEvents forControlEvents}) → void -
Available on UIControl, provided by the UIControl$Methods extension
addTarget:action:forControlEvents: -
beginTrackingWithTouch(
UITouch touch, {UIEvent? withEvent}) → bool -
Available on UIControl, provided by the UIControl$Methods extension
beginTrackingWithTouch:withEvent: -
cancelTrackingWithEvent(
UIEvent? event) → void -
Available on UIControl, provided by the UIControl$Methods extension
cancelTrackingWithEvent: -
continueTrackingWithTouch(
UITouch touch, {UIEvent? withEvent}) → bool -
Available on UIControl, provided by the UIControl$Methods extension
continueTrackingWithTouch:withEvent: -
endTrackingWithTouch(
UITouch? touch, {UIEvent? withEvent}) → void -
Available on UIControl, provided by the UIControl$Methods extension
endTrackingWithTouch:withEvent: -
enumerateEventHandlers(
ObjCBlock< Void Function(UIAction?, Pointer< iterator) → voidObjCObject> ?, Pointer<ObjCSelector> , UnsignedLong, Pointer<Bool> )> -
Available on UIControl, provided by the UIControl$Methods extension
Iterate over the event handlers installed on this control at the time this method is called. For each call, either actionHandler or action will be non-nil. controlEvents is always non-zero. Setting *stop to YES will terminate the enumeration early. It is legal to manipulate the control's event handlers within the block. -
initWithCoder(
NSCoder coder) → UIControl? -
Available on UIControl, provided by the UIControl$Methods extension
initWithCoder: -
initWithFrame(
CGRect frame) → UIControl -
Available on UIControl, provided by the UIControl$Methods extension
initWithFrame: -
initWithFramePrimaryAction(
CGRect frame, {UIAction? primaryAction}) → UIControl -
Available on UIControl, provided by the UIControl$Methods extension
Initializes the control and adds primaryAction for the UIControlEventPrimaryActionTriggered control event. Subclasses of UIControl may alter or add behaviors around the usage of primaryAction, see subclass documentation of this initializer for additional information. -
Available on UIControl, provided by the UIControl$Methods extension
Return a point in this control's coordinate space to which to attach the given configuration's menu. -
removeAction(
UIAction action, {required UIControlEvents forControlEvents}) → void -
Available on UIControl, provided by the UIControl$Methods extension
Removes the action from the set of passed control events. -
removeActionForIdentifier(
NSString actionIdentifier, {required UIControlEvents forControlEvents}) → void -
Available on UIControl, provided by the UIControl$Methods extension
Removes the action with the provided identifier from the set of passed control events. -
removeTarget(
ObjCObjectBase? target, {required Pointer< ObjCSelector> action, required UIControlEvents forControlEvents}) → void -
Available on UIControl, provided by the UIControl$Methods extension
removeTarget:action:forControlEvents: -
sendAction(
Pointer< ObjCSelector> action, {ObjCObjectBase? to, UIEvent? forEvent}) → void -
Available on UIControl, provided by the UIControl$Methods extension
Dispatch the target-action pair. This method is called repeatedly by -sendActionsForControlEvents: and is a point at which you can observe or override behavior. -
sendAction$1(
UIAction action) → void -
Available on UIControl, provided by the UIControl$Methods extension
Like -sendAction:to:forEvent:, this method is called by -sendActionsForControlEvents:. You may override this method to observe or modify behavior. If you override this method, you should call super precisely once to dispatch the action, or not call super to suppress sending that action. -
sendActionsForControlEvents(
UIControlEvents controlEvents) → void -
Available on UIControl, provided by the UIControl$Methods extension
send all actions associated with the given control events