1. btn.enabled = YES;
btn.userinteractionEnabled = NO;
点击btn触发touchBegan(说明btn没有处理事件)
2. btn.enabled = NO;
btn.userinteractionEnabled = NO;
点击btn触发touchBegan(说明btn没有处理事件)
3. btn.enabled = NO;
btn.userinteractionEnabled = YES;
点击btn触发touchBegan(说明btn没有处理事件)
4. btn.enabled = YES;
btn.userinteractionEnabled = YES;
点击btn触发BtnAction(说明btn处理了事件)
5. 以上说明userInterActionEnabled比enabled更重要。只有当enabled和userInterActionEnabled同时为YES时才能触 发btn的点击事件。
6. UIImageVIew 的userInterActionEnabled default is NO
UIlabel的userInterActionEnabled default is NO
UIView的userInterActionEnabled default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue