Tableviewのコード:
-(void)tableView:(UITableView *)tableView didselectRowAtIndexPath:(NSIndexPath *)indexPath{
ViewControllerDisplayMsg *detail = [self.storyboard instantiateViewControllerWithIdentifier:@"viewController3"];
cellvalue=[array objectAtIndex:indexPath.row];
detail.DisplayMsgString = cellvalue;
[self.navigationController pushViewController:detail animated:YES];
}
viewController3のコード:
- (void)viewDidLoad
{
[super viewDidLoad];
self.DisplayMsgLabel.text= self.DisplayMsgString;
}
上記のコードは、viewcontroller3を開いたときにデータを空白で渡さないのですが、データが渡されないのはなぜですか。どのコードが欠落していますか?
私を助けてください。本当に助けに感謝します。
前もって感謝します。