多触摸获取方法

 

- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{

 

  //  messageLabel.text =@"Touches Began";

 

//    [self updateLabelsFromTouches:touches];

 

 

      NSUInteger numTouches = [touches count];

 

      NSUInteger numTags = [[touches anyObject] tapCount];

 

}

 

numTags 获取轻击次数 . 

touches 的个数表示当前按压屏幕的手指数量.

 

 

你可能感兴趣的:(方法)