获取当前手指
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);
}
{
[super touchesBegan:touches withEvent:event];
//获取当前点
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self.superview];
NSLog(@"%.2f, %.2f", point.x, point.y);
}
相关文章推荐
- HDU - 1875 畅通工程再续(最小生成树)
- Linux文件管理下
- Eclipse里项目名有红叉,但是底下的每一个文件都没有红叉(转)
- 史上最简单遮罩实现
- java 编译中常用函数
- 数据库oracle 11g 的启停操作
- 发生java.lang.OutOfMemoryError: Direct buffer memory
- HLS系统快速部署指南
- Linux学习篇之---shell下输出带颜色文字
- OSX 10.11 cocoapods安装命令: sudo gem install -n /usr/local/bin cocoapods
- CSS3 垂直居中 左右居中
- 图片合成截屏
- wumeiling29
- Redis数据库笔记
- 详解SpringMVC4+Mybatis构建
- iOS布局
- Zookeeper-Zookeeper可以干什么
- ztree 的构建
- Yii2 前端资源使用
- asp.net简单小爬虫