您的位置:首页 > 其它

Isgl3d获取视屏点击位置

2012-07-02 15:47 176 查看
- (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);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: