![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
触摸与手势
文章平均质量分 78
Mainning
我的笔记!
展开
-
IOS之触摸与手势
一、触摸事件的处理方式 1.在IOS上,事件有多种形式:触摸事件,运动事件,远程控制事件。 2.触摸事件的处理方法 响应者类通过复写以下方法,可以监听触摸事件 (1)当一个或者多个手指触摸屏幕时: - (void)touchesBegan:(NSSet *)touches withEvent: (2)当一个或多个手指在屏幕上移动时: - (void)touchesMoved:(NSSe原创 2015-04-03 14:23:23 · 880 阅读 · 0 评论 -
触摸与手势之拖拽
触摸与手势中要求拖拽出一个半透明黑框,并打印位置和大小 1.源代码 2.效果图 // ViewController.m #import "ViewController.h" #define kScreenWidth [UIScreen mainScreen].bounds.size.width #define kScreenHeight原创 2015-03-15 20:14:59 · 878 阅读 · 1 评论