- 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

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -