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