IOS 获取触摸点的坐标位置

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    UITouch *touch = [touches anyObject];
    CGPoint point = [touch locationInView:touch.view];
    NSLog(@"%@",NSStringFromCGPoint(point));
}


你可能感兴趣的:(IOS 获取触摸点的坐标位置)