No, nothing looks like a tag that accepts an NSString.
Note that if you just want a descriptive tag, an enumeration may be useful.
enum ButtonTypes { ButtonTypeUnknown, ButtonTypeOK, ButtonTypeFoo, ButtonTypeBar,
Then later ...
switch (mybutton.tag) { case ButtonTypeFoo: // handle this button type break; case ButtonTypeBar: // handle this button type break; default: break; }
source share