objective c - UILabel.text doesn't change from NSString (iOS) -


i'm trying change name(uilabel).text namestring(nsstring) not present on screen (it change - value when debug , correct value).

code:

nsstring *namesstring = [self.names objectatindex:i]; infowindow.storeaddresslabel.text = namesstring; 

note: if type:

infowindow.storeaddresslabel.text=@"sometext"; 

it works

does know why it? thanks!

you're referencing 2 different variables. on 1st line define namestring, , on next line set using namesstring s


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -