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

2025-03-12 14:59:17
推荐回答(1个)
回答1:

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