两个视图控制器之间的ios传递数据没有segue?

我想从一个视图控制器传递数据到另一个视图控制器那些没有连接到彼此与segue.in firstviewcontroller当button触摸(最喜欢)想要数据传递给属于tabbarviewcontroller一部分的secondviewcontroller(favoriteviewcontroller)。 我知道最好的解决scheme也许使用委托? 但我该怎么做呢?

- (IBAction)showFavouriteViewController:(UIButton *)sender { //Create an instance of FavouriteViewController FavouriteViewController *fVC = [self.storyboard instantiateViewControllerWithIdentifier:@"FavouriteViewController"]; //Set public property of FavouriteViewController (these are the data you wanted to send) fVC.favouriteArray = @[@"Apple", @"Orange"]; //Show the FavouriteViewController [self.navigationController showViewController:fVC sender:nil]; } - (IBAction)showFavouriteViewController:(UIButton *)sender { //Create an instance of FavouriteViewController FavouriteViewController *fVC = [self.storyboard instantiateViewControllerWithIdentifier:@"FavouriteViewController"]; //Set public property of FavouriteViewController (these are the data you wanted to send) fVC.favouriteArray = @[@"Apple", @"Orange"]; //Show the FavouriteViewController [self.navigationController pushViewController:fVC animated:YES]; } - (IBAction)showFavouriteViewController:(UIButton *)sender { //Create an instance of FavouriteViewController FavouriteViewController *fVC = [self.storyboard instantiateViewControllerWithIdentifier:@"FavouriteViewController"]; //Set public property of FavouriteViewController (these are the data you wanted to send) fVC.favouriteArray = @[@"Apple", @"Orange"]; [self presentViewController:fVC animated:YES completion:^{ }]; // OR UINavigationController *nVC = [[UINavigationController alloc] initWithRootViewController:fVC]; //Presnet [self presentViewController:nVC animated:YES completion:^{ }]; }