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

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -