-1

I want, using Swift in iOS, to capture a variable before the app closes from a subview and place it in storage, and prior to the app gets too far along on re-open restore this variable.

I know how to get and set, I just am hoping to stumble across the events that trigger before the app closes and shortly after it launchers.

halfer
  • 19,824
  • 17
  • 99
  • 186
Ajwhiteway
  • 986
  • 1
  • 9
  • 23
  • 2
    AppDelegate. There's comments next to each delegate method when you first create a project that tell you what each of them do. – tktsubota Jul 22 '16 at 18:22
  • perfect! thanks! I wonder since this is so simple, and a blunder of an over site, should I delete this question? – Ajwhiteway Jul 22 '16 at 18:26
  • I don't develop iOS, so can't myself say whether the question should be kept. If you think someone might have the same question, and you cannot find a duplicate now that you know the answer, then there may be value in keeping it. – halfer Jul 22 '16 at 21:54

1 Answers1

0

You should do this in the AppDelegate.swift file.

Pranav Wadhwa
  • 7,666
  • 6
  • 39
  • 61