0
我在視圖中添加了一個子視圖。我發現它時,感動,當動畫觸摸事件是找到子視圖.. 這裏是代碼...當在iphone中動畫時觸摸子視圖時會發現嗎?
- (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");
}
}