How do you get the touchesBegan coordinates when a UIButton is triggered?

后端 未结 2 2032
伪装坚强ぢ
伪装坚强ぢ 2020-12-23 22:14

I have a touchesBegan method set up to pick up the coordinates when the user touches the screen. It works great except when I touch down on a UIButton. How do I make it so

2条回答
  •  情歌与酒
    2020-12-23 22:29

    Try overriding UIButton class and in the touchesBegan method call [super touchesBegan..].

提交回复
热议问题