iphone - Why can't I change the tag on my UIButton? -
i have nsstring "s21" , trying convert numbers button's tag.
i doing:
nsstring *temp = [[array objectatindex:0] stringbyreplacingoccurrencesofstring:@"s" withstring:@""]; [_b0 settag: [temp intvalue]];
_b0 uibutton.
i running nslog check tag after run settag, button's tag doesn't change , remains 0.
what doing wrong?
just check iboutlet
connection of uibutton
if creating through nib file.
Comments
Post a Comment