Isgl3d获取视屏点击位置

来源:互联网 发布:iphone6网络 ios10 编辑:程序博客网 时间:2024/06/06 18:36
 - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {

// Test for touches if no 3D object has been touched
        UITouch* touch = [touches anyObject];
        NSUInteger numTaps = [touch tapCount];
        CGPoint tapPoint = [touch locationInView:touch.view];
        NSLog(@"%f %f\n", tapPoint.x, tapPoint.y); 
}
原创粉丝点击