Pregunta

This is my code :

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:vc];
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"RETURN" style:UIBarButtonItemStylePlain target:self action:@selector(refreshPropertyList:)];
navigationController.navigationItem.rightBarButtonItem = anotherButton;
[anotherButton release];       
[IpadAppDelegate.stackController presentModalViewController:navigationController animated:YES];

enter image description here

¿Fue útil?

Solución

I find out the reason :

need change navigationController.navigationItem.rightBarButtonItem = anotherButton;

to: self.navigationItem.rightBarButtonItem = anotherButton;

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top