Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AbhishekApple

macrumors member
Original poster
Aug 5, 2010
86
0
i have navigationcontroller which handles 2 levels after that on click of button i have added a modalviewcontroller...

Now on the modalviewcontroller if i click on a button it should take me to root view...

(Like in Contacts App in iphone when we go to edit mode it fades in a edit view and when we delete the contact on edit view it takes us back to root i.e contact list )


I tried with
[self.navigationController popToRootViewController:YES];
But didn't worked as aftr pushing two viewcontoller i am adding a modalviewcontroller
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.