I am setting the userName label text in RootViewController in splitViewController it works fine but problem is that I want to change the userName label text in otherViewController but when I open Root Viewcontroller it does not get the new userName may be due to it does not get reloaded again.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
First you need to set one global variable for accessing this where you set Username from another class and then you can use bellow methods for set Username on particular variable.
you can access class method from Other class using @protocol
or
You can use
NSNotificationCenter
as BellowAdd Bellow Method into your
rootViewcontroller
ViewDidLoad
method:-and put Bellow Method for calling
NSNotificationCenter
where from you want to calling reloadDatarootViewcontroller