In this lesson, we learn how to observe and trigger notifications using the NotificationCenter.
We also learn how to pass information from one ViewController to another using the Observer Pattern.
We demonstrate this by building a simple application that allows us to turn on/off the observer.
Whenever a user enters his/her name in a text field and clicks the save button, the name is sent with the notification.
All ViewControllers that are listening will receive the name and update the title label.
Say Hi on Social Media:
LinkedIn: / emacco
Twitter: / its_macco
Additional Resources:
Starter Project: https://github.com/EMacco/ios-tutoria...
Complete Project: https://github.com/EMacco/ios-tutoria...