- Where Developers Learn, Share, & Build Careers


I have a UIViewController label that has its own text set with an external server. Add to viewDidLoad :

  [self.view addSubview: label];   

Server updates the text after a few minutes, and in the app I press a button which activates it:

  [self.view setNeedsDisplay ];   

But the text of the label is not updated until the app is re-compiled

How about label.text = @" new title "; ?

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -