cancelPerformSelectorsWithTarget:
指定したターゲットのアクションをキャンセルします
-(void)cancelPerformSelectorsWithTarget:(id)target:
解説
指定したターゲットのアクションをキャンセルします。
返り値
( void )
なし
引数
( id )target
ターゲット
フレームワーク
Foundation
クラス
NSRunLoop
Instance Methods
使用可能
10.2
参照
例文
- (IBAction)myAction:(id)sender { [[NSRunLoop currentRunLoop] performSelector:@selector(timerControl) target:self argument:nil order:0 modes:[NSArray arrayWithObject:@"NSDefaultRunLoopMode"] ]; NSLog(@"1st"); [[NSRunLoop currentRunLoop] cancelPerformSelectorsWithTarget:self]; NSLog(@"3rd"); }