phase
解説
引数
フレームワーク
UIKit
クラス
UITouch
Property
使用可能
iPhone2.0
参照
例文
- (void) touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event { UITouch* touch = [touches anyObject]; switch ([touch phase]) { case UITouchPhaseBegan: NSLog(@"UITouchPhaseBegan"); break; case UITouchPhaseMoved: NSLog(@"UITouchPhaseMoved"); break; case UITouchPhaseStationary: NSLog(@"UITouchPhaseStationary"); break; case UITouchPhaseEnded: NSLog(@"UITouchPhaseEnded"); break; case UITouchPhaseCancelled: NSLog(@"UITouchPhaseCancelled"); break; default: break; } [self setNeedsDisplay]; }