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來做到這一點。 感謝您的幫助!

回答

0

用途:

-(IBAction)popMyViewControllerBack:(id)sender 

和發件人將ModalSetDateController的一個實例。

+0

您可以使用[self presentModalViewController:setStartDate animated:YES]而不是使用UINavigationController。 – drummondj 2010-12-07 08:01:47

相關問題