title: argument of method @selector
body: <p>I have a method @selector with parameter of type NSString. when I compile the app I get this error</p>
  
  <pre><code>No visible @interface for 'UIButton' declares the selector 'addTarget:action:
  withObject:forControlEvents
  </code></pre>
  
  <p>The method is declared in header file.
  This is the code:</p>
  
  <pre><code> -(void)loadDetailListViewController: (NSString *)nameTable{
        //......
    }
  
   - (MKAnnotationView *)mapView:(MKMapView *)mapview viewForAnnotation:(id 
    &lt;MKAnnotation&gt;)annotation
    {
          //.....
  
     UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
  
     [rightButton addTarget:self action: @selector(loadDetailListViewController:) 
       withObject:self.nameTable forControlEvents:UIControlEventTouchUpInside];
      //here the error
  
  
          //.....
     }
  </code></pre>
  
  <p>I don't know if the parenthesis are right</p>