主要看下面這兩篇文章,分析的很詳細(xì)很到位,沒事多看兩遍,可以透徹地理解吧,主要是- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event 這個方法的使用。
文章一:https://zhoon.github.io/ios/2015/04/12/ios-event.html
文章二:http://www.itdecent.cn/p/c294d1bd963d?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation