1

I'm trying to 'do some stuff' at the same time as I am popping the top viewController off the stack. Popping a viewController from the stack does not seem to be considered a segue so I can't use prepareForSegue: sender: Is there an alternative method that would fulfill my need? Or is there a different approach I could be taking? Thanks a lot!!!

Scott Mielcarski
  • 760
  • 6
  • 17

2 Answers2

1

When you are saying "pop" to the top ViewController, I assume you are using a navigationController. If that is the case, you can put whatever you want in the

- (void)viewWillAppear:(BOOL)animated

method.

Martol1ni
  • 4,684
  • 2
  • 29
  • 39
1

Look for "unwinding segues" that's what fulfils your needs.

Pedro Borges
  • 1,568
  • 1
  • 14
  • 25