touches获得手指点击的坐标

-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

{

    UITouch *touch = [touches anyObject];

    CGPoint point = [touch locationInView:self.view];

    NSLog(@"kkk %f , %f",point.x,point.y);

}

原文地址:https://www.cnblogs.com/zhaozhongpeng/p/4867919.html