IOS model level notifying controller object

https://developer.apple.com/library/mac/#documentation/General/Conceptual/DevPedia-CocoaCore/MVC.html

In the link above, I see the following regarding how the model layer should interact with the ViewController.

"When a model object changes (for example, new data is received over a network connection), it notifies the controller object, which updates the corresponding view objects.

My question is: how does the model object notify the Controller object? . How can this be done? My model layer gets the location of the user and then calls the web service. How should I notify the controller object when loading this data?

thank

+5
source share
1

, . , /, . .

Edit:

, , : , . , - , , .

: . , , , , , , .

, NSNotificationCenter.

Key-Value-Observing, .

+4

All Articles