我使用下面的代码来检测物体上的触摸
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
NSArray *allTouches = [touches allObjects];
for (UITouch *touch in allTouches)
{
NSLog(@"TOUCH DETECT");
}
}
但它没有被触发
欢迎任何评论
我使用下面的代码来检测物体上的触摸
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
NSArray *allTouches = [touches allObjects];
for (UITouch *touch in allTouches)
{
NSLog(@"TOUCH DETECT");
}
}
但它没有被触发
欢迎任何评论