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);

}

posted @ 2015-10-10 18:11  上官元空  阅读(390)  评论(0编辑  收藏  举报