NSArray* viewControllers = self.navigationController.viewControllers;
OrderDetailsViewController* previousVC = [viewControllers objectAtIndex:[viewControllers count] - 2];
self.orderDetails.cashOrCredit = @"cash";
previousVC.orderDetails = self.orderDetails;
[self.navigationController popViewControllerAnimated:YES];
No comments:
Post a Comment