0

目标 C - iPhone 应用程序

我有 2 个以编程方式实例化的 UINavigationControllers

在控制器 1 中,我推送此视图

-(IBAction) showStartDateCalendar 
{
 ModalSetDateController *setStartDate = [[ModalSetDateController alloc] init];
 [self.navigationController pushViewController: setStartDate animated:YES];
 [setStartDate release];

};

为了把它推回去,我打算做这样的事情:

-(IBAction) PopMyViewControllerBack;

{
 [self.navigationController popViewControllerAnimated: YES];
}

但是我如何能够在 ModalSetDateController 上获取 datepicker 的值这是处理添加 UIPickerview 的最佳方法。我什至宁愿没有 UINavigationController 这样做。谢谢你的帮助!

4

1 回答 1

0

采用:

-(IBAction)popMyViewControllerBack:(id)sender

sender 将是 ModalSetDateController 的一个实例。

于 2010-12-07T07:57:56.627 回答