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.