所以我有一个带有三个标签的标签栏应用程序。在第二个选项卡中,我有一个按钮,用于加载另一个视图,其中两个文本字段将它们的值传递到原始选项卡视图中的两个标签中。当我单击按钮,输入我的值,然后单击设置按钮返回原始视图时,标签已更改,但标签栏未加载。从不同视图切换后如何加载标签栏?
按下原始标签栏视图中的按钮时的代码
TeamNameViewController *fvc = [self.storyboard instantiateViewControllerWithIdentifier:@"99"];
fvc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentViewController:fvc animated:YES completion:nil];
返回标签栏的代码
SecondViewController *tempView = [self.storyboard instantiateViewControllerWithIdentifier:@"SecondViewControllerSB"];
tempView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentViewController:tempView animated:YES completion:nil];