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);
}
// 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);
}
相关文章推荐
- 如何获取点击屏幕的位置
- JavaScript中几种获取鼠标点击坐标位置的方法
- 在WebBrowser控件中获取鼠标在网页上点击的位置
- 【百度地图API·javascriptapi】地图定位、创建自定义图标、获取用户点击位置
- js获取鼠标点击的位置
- Android 技巧 - 点击获取元素位置
- js获取页面元素和鼠标的点击位置
- jQuery获取当前鼠标相对位置坐标和点击图片跳转上一张或下一张功能
- js获取鼠标点击位置(很旧很旧。。。)
- Android获取点击屏幕的位置坐标
- ASP.NET gridview中点击任意行的任意位置选中某行交替效果 变换鼠标手势,获取选定行的指写数据
- js获取点击事件的坐标位置
- ios获取点击屏幕的位置
- js获取鼠标dom点击位置,获取距离dom可视宽高,获取自己距离左上距离,获取点击自己 距离自己xy
- 获取鼠标点击的位置
- event获取页面鼠标点击位置坐标
- 获取鼠标点击位置
- 获取局部DIV的滚动条当前点击位置定位
- JavaScript 获取鼠标点击位置坐标
- 获取tableViewCell点击的位置和indexPath