首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

多抚摸获取方法

2012-06-29 
多触摸获取方法?- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{?? // ?messageLabe

多触摸获取方法

?

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

?

?

热点排行