macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

tapCount

INDEX>UIKit>UITouch

タップした回数

@property(nonatomic, readonly) NSUInteger tapCount

解説

タップした回数

クラス

UITouch

Property

使用可能

iPhone2.0

参照

例文

- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
	UITouch*			touch = [touches anyObject];
	NSLog(@"touch tap count %d",[touch tapCount]);
	
	[self touchesMoved:touches withEvent:event];
}