I've got a UIViewController with two button, prev and next. When I push these button I re-instantiate the same viewcontroller passing it some variables and then I push it on the UINavigationController with no animation.
With this method my memory is always full cause, as far as i know, it is released only when I pop my viewcontrollers.
So my question is.. how could I implement this behavior? I need to free the memory when I load next (or prev) view controller
setViewControllers:Animated:
to set the view controllers on the navigation controller stack. This will allow you to "drop" old navigation controllers you no longer need. Documentation: developer.apple.com/library/ios/#documentation/uikit/reference/… . I've no example code so I've not posted as an answer. – Robotic Cat