摘要: #pragma mark - 轻扫// 开始点击- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; _startPoint = [touc... 阅读全文
posted @ 2014-04-17 09:02 忆轩 阅读(111) 评论(0) 推荐(0) 编辑
摘要: - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject];// 某一个手指 CGPoint currentPoint = [touch locati... 阅读全文
posted @ 2014-04-17 09:01 忆轩 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: UIView支持触摸事件 因为继承于UIResponder,而且支持多点触摸,使用时需要定义UIView子类,实现触摸相关的方法- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;点击开始时执行此方法(多么见名知意)- ... 阅读全文
posted @ 2014-04-17 08:59 忆轩 阅读(196) 评论(0) 推荐(0) 编辑