- (void)prepareForSegue:(UIStoryboardSegue*)segue sender:(id)sender {
// segue のidentifier で、どの画面遷移か判別する。
// Storyboard 画面でsegue のidentifier を設定するのを忘れずに。
if ( [segue.identifier isEqualToString:@"showNextView"] ) {
// 遷移先のUIViewControllerを指定
NextViewController* nvc = (NextViewController*)[segue destinationViewController];
nvc.delegate = self;
/* ここで遷移先画面にデータを渡したりする */
}
参考
storyboardでnavigation
storyboardでnavigation|tototan
[dvc setDetailItem:[NSString stringWithFormat:@”%@”,[myData objectAtIndex:selectedIndex] …