我在我的视图控制器中有一张表格(让我们称之为 TVC1)。TVC1 中有一些行用于让用户输入一些额外的数据,以补充 TVC1 中的数据。因此,当有人点击 TVC1 中的特定行时,它将显示另一个视图控制器(让我们称之为 TVC2)。然而,显示 TVC2 时,TVC1 中的所有数据都被清除。如何保存 TVC1 中的数据?我应该通过应用程序委托来实现吗?
DescriptionInputViewController *descriptionController = [[DescriptionInputViewController alloc]
initWithNibName:@"DescriptionInputView"
bundle:nil];
[self presentModalViewController:navController animated:YES];
[self.navigationController pushViewController:descriptionController animated:YES];
[descriptionController release];