“`”

  • 如果父控件不能接收触摸事件,那么子控件就不可能接收到触摸事件(掌握)
  • UIView不接收触摸事件的三种情况:
  • 不接收用户交互 : userInteractionEnabled = NO
  • 隐藏 : hidden = YES
  • 透明 : alpha = 0.0 ~ 0.01
  • UIImageView的userInteractionEnabled默认就是NO,因此UIImageView以及它的子控件默认是不能接收触摸事件的
            "```

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.