Root question: "How many UIViewControllers can you push the navigation stack?" without memory alerts or watchdog timer interruptions.
Suppose I have an application, which basically is a database for three objects, each of which may have a relationship with some other object, and the relationship is shown in the UIViewController. Users can follow these relationships, and each of them displays a new controller. If objects A, B and C and A-> B-> C-> B-> C-> A, then each view is on the stack twice, I understand how to press and pop, how to move back to a specific controller, and I think, and not just expand the navigation stack indefinitely, it is best to reuse the view controller in the navigation stack.
To do this, every time I need FirstEntityViewController, I could scan the navigation stack to find the object where [self isKindOfClass:[FirstEntityViewController class]];, and then call the methods designed to rejig this view for what I want to see now - just updating the data in this way same as reusing UITableViewCell.
This is great, except for the effect that it can have on the navigation controller. If I use UINavigationController:popToViewController:animated:, I think he will give up everything that I see, including the view that the user expects to find by clicking "Back" in the navigation bar. Thus, the user takes the relationship, drops it back and goes “yes?”
If I remove the corresponding controller from the navigation stack and then push it to the top of the stack, the writeback behavior remains in order until the user returns to the FirstEntityViewController instance that was moved or otherwise the repeated navigation will seem inconsistent.
Is it the right solution to remove the controller from the stack and somehow keep the space on the stack so that when you use the controller again, it can be replaced back to where it came from? Do I have to maintain my own list of views of the view and data display, so that when I can, I can replace the view under the view that should appear in order to stay one step ahead back?
? , , UITableViewCells , 50- ?