我有四个 UIImageViews
放在圆形 UIView
.拖拽UIView
旋转 View 。但是当我拖动 UIImageView 时,不会发生旋转。 UIImageView 正在吃东西。
我将 UIImageView 子类化并尝试了这个:
- (void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
[self.superview touchesMoved:touches withEvent:event];
[super touchesMoved:touches withEvent:event];
}
这似乎不能解决问题。我尝试禁用
UIImageView
上的触摸- [imageView setUserInteraction:NO]
.那也解决不了问题。我知道有人问过类似的问题。但似乎没有一个能解决我的问题。谢谢。
最佳答案
尝试设置userInteractionEnabled
至NO
在您的 UIImageView
上s,它应该防止他们消耗触摸。
关于ios - 从 UIImageView 传递触摸到 superview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28582097/