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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -