In the control event , briefly explain the following events.
Description: Because it was tested in the IOS emulator, you cannot use your finger, only with the mouse.
1) Uicontroleventtouchdown
The left mouse button pressed (note: just "press") the action
2) Uicontroleventtouchdownrepeat
The left mouse button repeatedly pressed (note: just "press") action, for example, the mouse double-click, three-hit 、......、 multiple combos.
Note: When repeatedly pressed, the sequence of events is this:
Uicontroleventtouchdown
(UIControlEventTouchUpInside)
Uicontroleventtouchdown
uicontroleventtouchdownrepeat
(UIControlEventTouchUpInside)
Uicontroleventtouchdown
uicontroleventtouchdownrepeat
(UIControlEventTouchUpInside)
...
In addition to the first press, a Uicontroleventtouchdown event is followed every time, 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 you drag, the mouse is outside the bounds of the control. But first there must be a Uicontroleventtouchdown event, then a Uicontroleventtouchdraginside event followed by 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 when a drag action, from outside the bounds of the control, is inside.
6) Uicontroleventtouchdragexit
Refers to an event that occurs when a drag action, from within the bounds of a control, occurs outside.
7) UIControlEventTouchUpInside
Refers to the mouse raised within the scope of the control, the premise is to press, that is, Uicontroleventtouchdown or Uicontroleventtouchdownrepeat event.
8) Uicontroleventtouchupoutside
Refers to the mouse raised outside the bounds of the control, the premise must be pressed, and then dragged outside the control, that is, Uicontroleventtouchdown, Uicontroleventtouchdraginside (n), Uicontroleventtouchdragexit, Uicontroleventtouchdragoutside (N) time series, then lift the mouse, Generates a Uicontroleventtouchupoutside event.
Description of the IOS Uicontrol event (GO)