Explore Library
Quiz

Balancing View Controller Lifecycle Cleanup

Learn where to tear down work started when a view controller appears.

You start location updates and register for keyboard notifications in a view controller's viewWillAppear(_:). Where should you stop the updates and remove the observers so they don't keep running while the controller is off-screen?