标签: objective-c hittest touchesbegan touchesmoved
有没有办法知道是否因为touchesBegan,touchesMoved或touchesEnded事件而引发hitTest:withEvent:方法?
hitTest:withEvent:
现在我只做:
if([event type]==UIEventTypeTouches) { }
但这不够独家
答案 0 :(得分:0)
没关系,在这里找到它:What works to pass touches through to (and display all) subviews?