After reading this post for iOS 9, I know that you no longer need to remove Observer.
However, for iOS 8, you need to remove the deinitObserver in the method for viewController. But I canβt figure it out. If viewController is freed, will DEAD not be? Why do we need to do removeObserver. This, as an observer, is very similar to calling a dead person who will never pick up the phone.
deinit
What? I do not understand?
This is fully explained in the article you linked:
:, , , (.. /, ), .
:
, , , (.. /, ), .
iOS 9 NSNotificationCenter weak, NSNotificationCenter , . . (, ), . , .
NSNotificationCenter
weak
iOS 9, NSNotificationCenter . , , . , . , .
,
!
, , . , , View Controller ? .
, , (, ) , - (, ).
: , ( ) ( ). , , , , . , - () , , . , , , .
Source: https://habr.com/ru/post/1655642/More articles:How to use global parent selector with CSS modules - javascriptExpand Angular 2 EC2 Application - node.jsPublish Angular 2 Application (Deployment) - angularWhat are the differences between these GAE libraries? - google-app-engineAbout publishing an Angular 2 application - angularAngular 2 - More useful stack traces? - angularUser Profile in Sitecore User Profile - sitecoreplotly: range slider on the x axis (date) with a custom start / end date - rSpam memory - firebasehow to sort intList every 5 elements - javaAll Articles