Seguesを使用して子ViewControllerから親VCにData(String)を渡す。誰かが私に(ストーリーボーディングで)最も速くて簡単な方法を提案できますか?
質問する
512 次
2 に答える
0
このブログを試してみてください。あなたが知る必要があるすべてのことを説明しています:)
http://www.appcoda.com/storyboards-ios-tutorial-pass-data-between-view-controller-with-segue/
UIStoryboard *storybord = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
ActionsViewController *vc =[storybord instantiateViewControllerWithIdentifier:@"-----"];
vc.Title =[namesarray objectAtIndex:indexPath.row];//where Title variable at next view class
[self.navigationController pushViewController:vc animated:YES];
于 2012-12-11T21:25:03.260 に答える
0
prepareForSegue:sender:
にアクセスできる場所に実装する必要が
ありますdestinationViewController
。
于 2012-12-11T21:38:39.193 に答える