The control does not receive user interaction and Event Response sequence, and the control does not

Source: Internet
Author: User

The control does not receive user interaction and Event Response sequence, and the control does not

During development, you may encounter a control that does not receive user interaction. You can check the following aspects:

1. enable = NO can not be clicked-> it will also make the button show disabled status

2. Set userInterActionEnabel = NO for the control.

3. The hidden attribute is YES.

4. alpha <= 0.01 of the control

5. If the interaction between a parent control and the user is set to NO, its child control cannot obtain the interaction event.

6. If the child view is out of the parent view range, the portion out of the range cannot receive user interaction.

 

7. event triggering Process

1) The interaction event is obtained by the parent control first, and then the parent control determines whether there are any child controls in the clicked area.

2) determine that no child control exists, and the parent control will handle it by itself

3) If a child control exists, it determines whether the child control can respond to interaction. If yes, it passes the interaction to the Child control.

 

8. Event Response Process

1). the subcontrol first responds.

2). If the child control does not respond, the parent control will respond.

3). If the child control responds, the parent control cannot obtain the response.

 

Related Article

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.