---
title: "多触摸获取方法 "
author: "cuichang"
date: "2011-06-21T15:49:52Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2011-06-21T15:55:38Z"
id: 1099762
url: "https://cuichang.iteye.com/blog/1099762"
---

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