1
所以,UIResponder具有类似的方法:越来越触及
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
我的问题是,什么是touches
参数之间的差异,以及[event allTouches]
?
所以,UIResponder具有类似的方法:越来越触及
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
我的问题是,什么是touches
参数之间的差异,以及[event allTouches]
?
所有套触摸存储在事件内。
但是,为了方便起见,Apple分别提供了触摸触发 touchesBegan方法作为参数被调用。
如果通过[事件allTouches]搜索并将它们与[触及anyObject]中的UITouch进行比较,则会找到匹配项。