macOS/iOS API解説

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

目次

timestamp

INDEX>UIKit>UITouch

タイムスタンプ

@property(nonatomic, readonly) NSTimeInterval timestamp

解説

クラス

UITouch

Property

使用可能

iPhone2.0

参照

例文

- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
	UITouch*			touch = [touches anyObject];

	NSLog(@"timestamp=%f",[touch timestamp]);

	[self touchesMoved:touches withEvent:event];
}