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
Post a Comment