Pergunta

Objective C - iPhone Application

I have 2 programatically instantiated UINavigationControllers

In controller 1 I push this View

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

};

To push it back I was planning on doing something like this:

-(IBAction) PopMyViewControllerBack;

{
 [self.navigationController popViewControllerAnimated: YES];
}

But how would I be able to get the value of the datepicker on ModalSetDateController Is this the best way to handle adding a UIPickerview. I would prefer to not even have a UINavigationController do it. Thanks for your help!

Foi útil?

Solução

Use:

-(IBAction)popMyViewControllerBack:(id)sender

and sender will be an instance of ModalSetDateController.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top