Description of the IOS Uicontrol event

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.