こんにちは私は情報を転送するためにセグエコードの準備を追加しましたが、エラーが発生します。
タブバーコントローラーを持っています。4つのタブがあります。各タブには、ナビゲーションコントローラーと、ルートビューコントローラーとしてのVCがあります。
タブ1->navコントローラー->VC1からtab2-->navコントローラー--->VC1に値を取得する必要があります
(タブ2のnavコントローラーまたはタブ2のルートビューに接続されているセグエもあります)よろしくお願いします
error:customizableViewControllers]:認識されないセレクターがインスタンス0xf19bd60に送信されました(ただし、タブ2(インデックス1)に移動します)?私のエラーはどこにありますか?
if ([segue.identifier isEqualToString:@"ResultsSegue"])
{
//the root VC at tab 2
ResultsIndexViewController*controller=[[ResultsIndexViewController alloc]init];
UITabBarController *tabController = [segue destinationViewController];
controller = (ResultsIndexViewController*)[[tabController customizableViewControllers]objectAtIndex:1];//crashing here
controller.resultsArray=[NSMutableArray arrayWithArray:_matchedResultsArray];
}
}