Any recommendations for resolving this problem I have, or perhaps a better implementation design?
Demand
My implementation concept
Problem
My analysis
From what I see, when I am on the details page (assignmentsListController) and gives a warning about a failure in the simulator, I see:
(a) "viewDidLoad", , , BACK (UINavigationController), (RootViewController), ,
(b) , [AppointmentListController viewDidLoad], , , dealloc AppointmentListController (.. A, B, A - dealloc ...)
, ? ( , )
- (void)viewDidLoad { [super viewDidLoad]; // My Implementation of the Requirements which seems flawed in the case there is memory warning triggered if ( previousSelectedScreen >= 0 ) { // Setup New Controller AppointmentListController *appointmentListController = [[AppointmentListController alloc] initWithNibName:@"AppointmentListController" bundle:nil]; appointmentListController.screenToShow = previousSelectedScreen; // Push new view onto stack [[self navigationController] pushViewController:appointmentListController animated:NO]; [appointmentListController release]; } }
: , , . , , , , .. , , : , .
- , , . , , (.. → ). setViewControllers. , .
setViewControllers