tags:

views:

20

answers:

1

I have 10 views with UINavigationController in hiereachy

now when i want to go back from 10 to 9 ,and so on by back button

which method should i use? 1>popviewCOntroller 2>popToViewController

I have set fixed value for all views.at application launch i get that value for that value i intialize rootviewController with use of UINavigationController and my rootviewcontroller is nothing but first view and after that on next line i'm pushing a particular view.

plz help me out

A: 

If you're pushing the views onto a UINavigationController, you don't need to explicitly set any method for the back button that the UINavigationController object manages, since it will pop the correct view when tapped. It's all automatic.

Shaggy Frog