FirstTableVC - navigationVC - editVC
-(IBAction)backToList:(UIStoryboardSegue *)unwindSegue
{
if([[unwindSegue identifier] isEqualToString:@"EditDone"]){
TableInputViewController *editVC = unwindSegue.sourceViewController;
if(self.editingIndexPath){//NSIndexPath editingIndexPath
//self.navigationController storyboard
}else{
//rowの最上部に追加している
NSIndexPath *indexPathToInsert = [NSIndexPath indexPathForRow:0 inSection:0];
//editVCとは、遷移先。そこのUITextFieldから取ってきてる
//itemsとは、FirstTableVCでtableに表示させるNSMutableArray
[items insertObject:editVC.textFieldInput.text atIndex:indexPathToInsert.row];
[self.tableView insertRowsAtIndexPaths:@[indexPathToInsert] withRowAnimation:UITableViewRowAnimationFade];
NSLog(@"追加したよ");
}
}
}