UIView のサブクラスでこれを行う場合:
[self performSelector:@selector(doSomething) withObject:nil afterDelay:5];
次に、次のようにキャンセルします(両方のバージョンを試しました):
[[NSRunLoop currentRunLoop] cancelPerformSelectorsWithTarget:self];
//[[NSRunLoop mainRunLoop] cancelPerformSelectorsWithTarget:self];
「doSomething」メソッドは引き続き呼び出されます。私は何を間違っていますか?