先从tabBarController取出导航控制器,再从导航控制器的ViewControllers取出需要传值的视图控制器。如
UINavigationController *recentNC = [self.tabBarController.viewControllers objectAtIndex:1];
RecentCallViewController *recentVC = [recentNC.viewControllers objectAtIndex:0];
先从tabBarController取出导航控制器,再从导航控制器的ViewControllers取出需要传值的视图控制器。如
UINavigationController *recentNC = [self.tabBarController.viewControllers objectAtIndex:1];
RecentCallViewController *recentVC = [recentNC.viewControllers objectAtIndex:0];
转载于:https://www.cnblogs.com/4Dream/p/4729503.html