【发布时间】:2015-02-18 11:09:09
【问题描述】:
我有四个UIImageViews 放在一个圆形UIView 上。拖动UIView 旋转视图。但是当我拖动 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] 的触摸。那也解决不了问题。我知道有人问过类似的问题。但似乎没有一个能解决我的问题。
谢谢。
【问题讨论】:
-
你在哪里写视图旋转代码。
-
父 UIView 内的@Nagarajan
标签: ios objective-c uiview uiresponder