0

Currently I am replacing the ECSlidingViewController.topviewcontroller to go to a other viewcontroller. But Now I want the previous viewcontroller to return to the last screen.

So I am on a list and want to see the details. The ECSlidingViewController.topviewcontroller is called and the nieuw uiviewcontroller is set to the topviewcontroller. Now I want to return to the list. How can this been done?

Robert-Jan
  • 196
  • 3
  • 15

2 Answers2

0

I currently always pushing to a viewcontroller that refreshed the topviewcontroller.

Robert-Jan
  • 196
  • 3
  • 15
0

You can simply create a bar button item in the child view controller and set an IBAction:

- (IBAction)revealMenu:(id)sender {

    [self.slidingViewController anchorTopViewTo:ECRight];

}
AJ112
  • 5,291
  • 7
  • 45
  • 60