title: How do I pass a parameter in a action:@selector?
body: <p>I am trying to pass a NSString parameter through action:@selector.  I have tried many things such as</p>
  
  <pre><code>action:@selector(function:example)
  action:@selector(function:example)
  action:@selector(function) withObject:example
  </code></pre>
  
  <p>None of these are working for me and I have no Idea what to do.</p>
  
  <p>Here is the method I am trying to select</p>
  
  <pre><code>- (void) function: (NSString *)testString{
  //Whatever stuffz
  }
  </code></pre>
  
  <p>And here is the complete line of code the selector is in</p>
  
  <pre><code>[testButton addTarget:self action:@selector(function:) forControlEvents:UIControlEventTouchUpInside];
  </code></pre>