<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);
}
9.1 手势识别
最新推荐文章于 2022-11-17 15:11:30 发布