title: How do I set and get UIButtons' tag?
body: <p>How do I set a tag for a button programmatically?</p>
  
  <p>I later want to compare to tags for a conclusion</p>
  
  <p>I've tried this</p>
  
  <pre><code>-(IBAction)buttonPressed:(id)sender{
      NSLog(@"%d", [sender tag]);
  }
  </code></pre>
  
  <p>but that just crashes the app.</p>
  
  <p>Any other ideas?</p>