Implement UITouchDown for UIImageView

前端 未结 4 1939
名媛妹妹
名媛妹妹 2021-02-09 03:44

I know how to implement touchesBegan for UIImageView

is it possible to implement UITouchDown for UIImageView ?(i know

4条回答
  •  [愿得一人]
    2021-02-09 04:14

    You can't.

    control events such as UIControlEventTouchDown etc are available for UIControl's child objects like UIButton, UITextField etc. UIImageView is a UIView and hence cannot generate control notifications.

    You have to use touchesBegan and co.

提交回复
热议问题