我有两个视图控制器,FirstViewController 和 FourthViewController。FirstViewController 是我的初始视图控制器。我提出了 FourthViewController
UIViewController *fourthController = [self.storyboard instantiateViewControllerWithID:@"Fourth"];
[self presentViewController:fourthController animated:YES completion:nil];
然后,在FourthViewController 的.m 中,我想在FirstViewController 中更改UILabel 的文本。所以我用
UIViewController *firstController = [self.storyboard instantiateViewControllerWithID:@"First"];
firstController.mainLab.text = [NSMutableString stringWithFormat:@"New Text"];
但是,在我使用后
[self dismissViewControllerAnimated:YES completion:nil];
我发现我的 mainLab 的文字没有更新。有谁知道为什么?