ITeye博客

多触摸获取方法

cuichang · 2011-06-21 15:49 · 移动开发 · Markdown

- (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 的个数表示当前按压屏幕的手指数量.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。