title: Get text of button from IBAction - iPhone
body: <p>When an IBAction is called:</p>
  
  <pre><code>-(IBAction) onClick1: (id) sender;
  </code></pre>
  
  <p>What is passed in the sender?  Since it's hooked up through the IB, I'm not really sure.  My question is how to get the text of the button to be the passed object (NSString most likely) so that I could call it inside the action implementation.</p>
  
  <pre><code>-(IBAction) onClick1: (id) sender {
    NSLog(@"User clicked %@", sender);
    // Do something here with the variable 'sender'
  }
  </code></pre>