How do i set and get UIButtons' tag?

Posted by Sam Jarman on Stack Overflow See other posts from Stack Overflow or by Sam Jarman
Published on 2010-03-17T02:32:26Z Indexed on 2010/03/17 3:11 UTC
Read the original article Hit count: 268

Filed under:
|

How do i set a tag for a button programmatically?

I later want to compare to tags for a conclusion

ive tried this

-(IBAction)buttonPressed:(id)sender{
NSLog(@"%d", [sender tag]);
}

but that just crashes the app.... :(

any other ideas?

Cheers Guys

Sam

© Stack Overflow or respective owner

Related posts about tags

Related posts about iphone-sdk