- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self.view];
[super touchesBegan:touches withEvent:event];
NSLog(@"タッチ開始 %0.1f, %0.1f", location.x, location.y);
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self.view];
[super touchesBegan:touches withEvent:event];
NSLog(@"タッチ中 %0.1f, %0.1f", location.x, location.y);
}
- (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self.view];
[super touchesBegan:touches withEvent:event];
NSLog(@"タッチ終了 %0.1f, %0.1f", location.x, location.y);
}