In the Uicontrol control event, briefly explain the following several events.
Description: Because it was tested in the IOS simulator, you can't use your finger, you can only use the mouse.
1) Uicontroleventtouchdown
Refers to the left mouse button pressed (note: just "press") action
2) Uicontroleventtouchdownrepeat
The left mouse button repeatedly press (note: just "press") the action, for example, the mouse consecutive double-click, three strikes 、......、 multiple combo.
Description: When repeatedly pressed, the sequence of events is this:
Uicontroleventtouchdown->
(UIControlEventTouchUpInside)->
Uicontroleventtouchdown->
Uicontroleventtouchdownrepeat->
(UIControlEventTouchUpInside)->
Uicontroleventtouchdown->
Uicontroleventtouchdownrepeat->
(UIControlEventTouchUpInside)->
...
In addition to the first press, each subsequent press is a Uicontroleventtouchdown event, followed by a uicontroleventtouchdownrepeat event.
3) Uicontroleventtouchdraginside
Refers to pressing the mouse, and then dragging within the bounds of the control.
4) Uicontroleventtouchdragoutside
Unlike Uicontroleventtouchdraginside, when dragged, the mouse is outside the bounds of the control. But first you have to have a Uicontroleventtouchdown event, then a Uicontroleventtouchdraginside event, and then a Uicontroleventtouchdragexit event, The mouse is already outside the control, and continuing to drag is the Uicontroleventtouchdragoutside event.
To do this: press the mouse inside the control, and then drag outside the control.
5) Uicontroleventtouchdragenter
Refers to the event that occurs in a drag action from outside the control's bounds.
6) Uicontroleventtouchdragexit
Refers to the event that occurs in a drag action when it is outside the bounds of the control.
7) UIControlEventTouchUpInside
Refers to the mouse in the control range raised, the premise must first press, that is, Uicontroleventtouchdown or uicontroleventtouchdownrepeat events.
8) Uicontroleventtouchupoutside
Refers to the mouse outside the bounds of the control to lift, the premise must first be pressed, and then dragged outside the control, that is, Uicontroleventtouchdown-> uicontroleventtouchdraginside (n)-> Uicontroleventtouchdragexit-> uicontroleventtouchdragoutside (N) time series, and then is to lift the mouse, Generates Uicontroleventtouchupoutside events. Uicontrol Overview of all Events
Uicontroleventtouchdown
Single Touch Press event: The user touches the screen, or when a new finger falls.
Uicontroleventtouchdownrepeat
Multi-point Touch press event, point touch count is greater than 1: when the user presses the second to third or fourth finger.
Uicontroleventtouchdraginside
When a touch is dragged inside the control window.
Uicontroleventtouchdragoutside
When a touch is dragged outside the control window.
Uicontroleventtouchdragenter
When a touch is dragged from outside the control window to the interior.
Uicontroleventtouchdragexit
When a touch is dragged from inside the control window to the outside.
UIControlEventTouchUpInside
All touches lift events within the control.
Uicontroleventtouchupoutside
All the touch-lift events outside the control (the point-touch must start with the inside of the control to send a notification).
Uicontroleventtouchcancel
All touch cancellation events are triggered by the system, that is, a touch is canceled because it has too many fingers, or is locked or interrupted by a phone call, or the screen rotates when the finger touches the control.
Uicontroleventvaluechanged
Sends a notification when the value of the control has changed. Used for sliders, segmented controls, and other value-taking controls. You can configure when a slider control sends a notification, sends it when the slider is dropped, or sends it when it is dragged.
Uicontroleventprimaryactiontriggered
A semantic action triggered by buttons.
Uicontroleventeditingdidbegin
Sends a notification when editing begins in a text control. Uitextfield Related
Uicontroleventeditingchanged
Sends a notification when text in a text control is changed. Uitextfield Related
Uicontroleventeditingdidend
Sends a notification when editing ends in a text control. Uitextfield Related
Uicontroleventeditingdidendonexit
Sends a notification when a text control ends editing by pressing the ENTER key (or equivalent behavior). Uitextfield Related
Uicontroleventalltouchevents
Notifies all touch events.
Uicontroleventalleditingevents
Notifies all events about text editing. Uitextfield Related
Uicontroleventapplicationreserved
A range of Control-event values available for application use.
Uicontroleventsystemreserved
A range of control-event values reserved for the internal framework use.
Uicontroleventallevents
Notifies all events.