如何实现点击uiview上任意位置触发事件

2025年03月12日 14:59
有1个网友回答
网友(1):

touchBegin 里
实现 if(!(CGRectContainsPoint([self.imageView bounds], [touch locationInView:self.imageView])))
然后处理方法就可以了