您的位置:首页 > 其它

获取当前手指

2015-12-04 17:08 218 查看
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event

{

[super touchesBegan:touches withEvent:event];

//获取当前点

UITouch *touch = [touches anyObject];

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

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

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: