title: How to get tag number of UIButton
body: <p>I am using Various button, and i have set tag of it from Xib files. And Connected  all button to single method <code>-(void) note:(id)sender</code>.</p>
  
  <p>Now i want to retrive tag number.so that i can see which button is clicked</p>
  
  <pre><code>-(void) note:(id)sender
  
  {
  
      NotesClass *note = [[NotesClass alloc] initWithNibName:@"NotesClass" bundle:nil];
      note.notetag = sender;
      NSLog(@"%@",note.notetag);
      [self.navigationController pushViewController:note animated:YES];
  
  }
  </code></pre>
  
  <p>When Print that NSlog I get this output:</p>
  
  <pre><code>&lt;UIButton: 0x4e70350; frame = (227 119; 20 18); opaque = NO; autoresize = RM+BM; tag = 1; layer = &lt;CALayer: 0x4e70480&gt;&gt;
  </code></pre>
  
  <p>Any one can please help me. </p>