ios - push DetailViewController when popping MasterViewcontroller -


in ipad master detail application, have master view controller tableview in detail view. when user clicks on row, pushes master view , detail view, when click on button on master view, master view pops back. need know how popback detail view controller or push when user clicks on master view button (i have set navigation bar hidden in detail view , wish keep same)

basically, when clicking on button, viewwilldisappear method called. yes, can push desired detail view controller when method called on master view controller:

-(void) viewwilldisappear:(bool)animated {    //push desired detail view controller    //if want use tags, make sure set tag view property of each master view controller before push stack    if (self.view.tag == 1) {      //for example, assuming views tagged 0, second master view controller      } } 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -