How can i clear view from navigation controller in ios
I am creating navigation based iphone application.In that i have to move from one view to another view as the user selects, but in one point i want to move from 4th view to 2nd view I will explain you briefly My Screens are 1) Menu 2) Event list of the selected menu (On this screen there is navigation button on right on click of this button another view will open to select city when user selects the city it should go to second screen by 开发者_JAVA百科clearing previously opened the same screen) 3) same as above there is right button to change city.
So how can i do this in ios please help me.I done this in android by option called ACTIVITY_CLEAR_TOP i want that same in ios.
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
精彩评论