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