I have added an observer
override func viewDidLoad()
{
super.viewDidLoad()
NSNotificationCenter.defaultCenter().addObserver(self, selector:\"selector na
If you support iOS Versions by 9.0 you don't need to remove observers by yourself in your deinit
method.
Taken from the documentation
In OS X 10.11 and iOS 9.0 NSNotificationCenter and NSDistributedNotificationCenter will no longer send notifications to registered observers that may be deallocated.
https://useyourloaf.com/blog/unregistering-nsnotificationcenter-observers-in-ios-9/