9.1 手势识别

来源:互联网 发布:淘宝网上怎么卖东西 编辑:程序博客网 时间:2024/06/14 02:24
<pre name="code" class="objc">#pragma mark 在4个手势通知方法中完成简单手势识别-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{//   how many tap times, how many fingers    NSInteger tapNum=[[touches anyObject]tapCount];    NSInteger touchesNum=[touches count];    NSLog(@"%ld fingers,%ld times",touchesNum,tapNum);    }


0 0
原创粉丝点击