objective c - Set label text from one view to anther -


I am trying to move the user to his settings where they will set a name. After clicking save name, the application will be placed on the main screen label without having to launch again. How can I do this, the easiest way?

Thank you!

If you have a settings view controller, I think that to keep track of saved settings You have some model objects. You must keep track of the username in that model object

Just add to your main view controller:

  - (zero) viewDidPair {[SuperWoodPeeper]; Self.userNameLabel.text = [self.modelObject valueForKey: @ "userName"]; }    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -