开发者

Get hit test event type

开发者 https://www.devze.com 2023-01-10 02:41 出处:网络
I开发者_运维百科s there a way to know if the hitTest:withEvent: method is being thrown because of a touchesBegan, touchesMoved or touchesEnded event?

I开发者_运维百科s there a way to know if the hitTest:withEvent: method is being thrown because of a touchesBegan, touchesMoved or touchesEnded event?

by now I only do:

if([event type]==UIEventTypeTouches)
{

}

but this is not exclusive enough


Nevermind, found it here: What works to pass touches through to (and display all) subviews?

0

精彩评论

暂无评论...
验证码 换一张
取 消