
I'm newbie in iPhone development, I need to do a form submission (multiple pages, each page will be a single ViewController). So what I did was navigate each pages through Navigation Controller... here is some illustration:
page 1 (have 'next' button)
page 2 (have 'next' and 'back' button)
page 3 (have 'next' and 'back' button)
page 4 (have 'next' and 'back' button)
page 5 (have 'next' and 'back' button)
page 6 (have 'done' button)
so when from page 1 to page 2, i am using pushViewController,
similiar from page 2 to page 3 etc
similiarly from page 2 back to page 1, i am using popViewController.
if click on 'done' button on page 6, it should back to page 1, i am using popToRootViewController
There's strange things happened if I navigate the pages around, e.g. page 1 to 2, then 2 to 3, then 3 back to 2, then 2 to 3 again etc etc
1st, I notice the memory usage go higher and higher
2nd, sometime the program just crash when i navigate arround, seem not stable at all. (not sure is cause by memory usage or not, but i notice the memory climb around 2MB)
i also try to use popToViewController, so i can from page 5 jump back to page 2, but seem not stable as well, not everytime success...
my actual work is include quite number of Views,
i using a TabController to navigate around 5 different NavigationController and each Navigation Controller having 5~6 views.
I really need some help to really understand the navigation controller, especially what is the proper way to navigate around different views in more effective way.
Really appreciate for any help!!! Thank you!!