【发布时间】:2011-12-30 13:26:53
【问题描述】:
我在视图中添加了一个子视图。我在触摸时找到它,当它为触摸事件设置动画时正在寻找子视图.. 这是代码...
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
if ([touch self]) {
NSLog(@"View Touched");
}
if ([[touch view] isKindOfClass:[Baloon class]]) {
NSLog(@"Baloon Touched");
}
}
【问题讨论】:
标签: iphone animation subview uitouch addsubview