title: cancelPreviousPerformRequestsWithTarget
body: <p>cancelPreviousPerformRequestsWithTarget is not working for me, i checked every one saying its working fine but for me not</p>
  
  <p>i call the following in performselector</p>
  
  <pre><code>[self performSelector:@selector(Opacity:) withObject:self.objopcarray afterDelay:reversedelay];
  </code></pre>
  
  <p>now i want to cancel it on a button click before it fires so i did the following</p>
  
  <pre><code>- (void) pressNextButton:(id)sender
  {
      [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(Opacity:) object:self.objopcarray];
  
      if (self.animationON == YES)
      {
          if (self.panel &lt; 16) 
          {
              [self DisplayImages];
              [timer invalidate];
              timer = [NSTimer scheduledTimerWithTimeInterval:sketchanimduration target:self selector:@selector(DisplayImages) userInfo:nil repeats:YES];
  
              if(self.panel &gt; 16)
              {
                  self.panel = 0;
              }
          }
      }
  
  }
  </code></pre>
  
  <p>but still same result</p>
  
  <p>any help will be highly appreciated</p>