Notifications
https://developer.apple.com/reference/foundation/nsnotificationcenter
You should do the following:
- Create a branch from develop called feature/notifications
- Add “Randomize order” button to
OrganizationInfoViewController
. It should randomize the order of employees in an organization. - Declare
kEmployeesOrderHasChanged
string constant. - Implement a logic of reloading table view on
MainViewController
after randomizing order inOrganizationViewController
with the help ofNSNotificationCenter
. - Create a pull request from your branch to develop.
You should be able to answer the following questions:
- What is
NSNotificationCenter
? - What is the difference between delegation and notifications patterns?
- How to unsubscribe from notifications? How and when should it be used? Is it mandatory?