I have two view controllers 1.rootviewController 2.myStatusDisplayViewController.
I have c stack call back function which returns ac string.That particular call back function calls a function in my rootviewcontroller. In my rootview controller I have reference to myStatusDispalyViewController using that reference I'm trying to update the label in myStatusDisplayviewController.
app.myStatusDisplayViewController.displayCallStatus.text =updatedCallStatus;
[app.myStatusDisplayViewController viewDidLoad];
[app.myStatusDisplayViewController viewWillAppear:YES];
Set your text in that block:
dispatch_async(dispatch_get_main_queue(), ^{
app.myStatusDisplayViewController.displayCallStatus.text =updatedCallStatus;
});
Hope it will work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.