title: calling selector with arguments
body: <p>I have a method:</p>
  
  <pre><code>-(void)pickTheQuiz:(id)sender etat:(int)etatQuiz{
     //i need to get the etatQuiz value here    
  
  
  }
  </code></pre>
  
  <p>and somewhere in my code, i call the method above like this:</p>
  
  <pre><code>int etat_quiz=4;
  [button addTarget:self action:@selector(pickTheQuiz:etat:)withObject:etat_quiz forControlEvents:UIControlEventTouchUpInside];
  </code></pre>
  
  <p>When doing so, i got error:</p>
  
  <pre><code>Receiver type UIButton for instance message does not declare a method with selector 'addTarget:action:withObject:forControlEvent
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>-(void)pickTheQuiz:(id)sender etat:(int)etatQuiz{
  
  
      NSLog(@"The part number is:%i",((UIControl*)sender).tag);
  
  }
  </code></pre>