-1

I'm looking for a way to indicate that the method viewWillDisappear run only when the flow of my Broadening go back and not forward.

Thanks!

PlugInBoy
  • 979
  • 3
  • 13
  • 25

1 Answers1

0

If you use navigation controller you can simply check if self.navigationController is nil. Nil navigation controller means that your view controller is not in navigation stack anymore.

If you use modal view controllers you can check if self.presentingViewController is nil.

Sviatoslav Yakymiv
  • 7,887
  • 2
  • 23
  • 43