1

Normally viewDidDisappear is called in my app, because back button was pressed in navigation viewcontroller. But if app is terminated viewDidDisappear is called too. How can I make distinction between the two reason?

János
  • 32,867
  • 38
  • 193
  • 353
  • I am not sure whether it's possible to determine inside of the controller, but you can set some flag in 'UserDefaults' for example, then check it in 'AppDelegate', 'func applicationWillTerminate(_ application: UIApplication)' – T. Pasichnyk Sep 12 '17 at 11:51

0 Answers0