Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

View controller life cycle

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Nächste SlideShare
Swift ui userinput
Swift ui userinput
Wird geladen in …3
×

Hier ansehen

1 von 11 Anzeige
Anzeige

Weitere Verwandte Inhalte

Anzeige
Anzeige

View controller life cycle

  1. 1. Unit 3—Lesson 8: View Controller Life Cycle
  2. 2. View controller life cycle Not Loaded Disappeared Appear viewWillDisappear(_:) viewWillAppear(_:) viewDidLoad() View Loaded View Not Loaded viewDidDisappear(_:) viewDidAppear(_:)
  3. 3. viewDidLoad( ) View controller life cycle Not Loaded Disappeared Appear viewWillDisappear(_:) viewWillAppear(_:) viewDidLoad() View Loaded View Not Loaded viewDidDisappear(_:) viewDidAppear(_:)
  4. 4. View event management viewWillAppear(_:) viewDidAppear(_:) viewWillDisappear(_:) viewDidDisappear(_:) override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) // Add your code here }
  5. 5. viewWillAppear(_:) View event management Not Loaded Disappeared Appear viewWillDisappear(_:) viewWillAppear(_:) viewDidLoad() View Loaded View Not Loaded viewDidDisappear(_:) viewDidAppear(_:)
  6. 6. viewDidAppear(_:) View event management Not Loaded Disappeared Appear viewWillDisappear(_:) viewWillAppear(_:) viewDidLoad() View Loaded View Not Loaded viewDidDisappear(_:) viewDidAppear(_:)
  7. 7. viewWillDisappear(_:) View event management Not Loaded Disappeared Appear viewWillDisappear(_:) viewWillAppear(_:) viewDidLoad() View Loaded View Not Loaded viewDidDisappear(_:) viewDidAppear(_:)
  8. 8. viewDidDisappear(_:) View event management Not Loaded Disappeared Appear viewWillDisappear(_:) viewWillAppear(_:) viewDidLoad() View Loaded View Not Loaded viewDidDisappear(_:) viewDidAppear(_:)
  9. 9. View Controller Life Cycle Unit 3—Lesson 8 This lesson will explain more about the view controller life cycle so you can understand the infinite potential of this important class
  10. 10. Lab: Order of Events Unit 3—Lesson 8 Further your understanding of the view's life cycle by creating an app that adds to a label’s text based on the events in the view controller life cycle
  11. 11. © 2017 Apple Inc. This work is licensed by Apple Inc. under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.

×