UIControl
extension UIControl
-
An action block for the
UIControl
.Declaration
Swift
public typealias Action = (_ control: UIControl) -> Void
-
Add a tap action to the control.
Declaration
Swift
public func addTap(_ action: @escaping UIControl.Action)
Parameters
action
an action block.
-
Remove a tap action block.
Declaration
Swift
public func removeTap()
-
Add a value changed action to the control.
Declaration
Swift
public func addValueChangedAction(_ action: @escaping UIControl.Action)
Parameters
action
an action block.
-
Remove a value changed action block.
Declaration
Swift
public func removeValueChangedAction()