How do I set a tag for a button programmatically?
I later want to compare to tags for a conclusion
I\'ve tried this
-(IBAction)buttonPressed:
No need for casting. This should work:
-(IBAction)buttonPressed:(UIButton*)sender { NSLog(@"%d", [sender tag]); }