store id’s, but how to inform our favorites view that a new location is favorited? The are several ways but we’ll use the cascading pattern which leverages the app delegate to propagate the change.
handle navigation in iOS: 1) UITabbarController which handles the overall structure of our app. 2) Modal presentation which handled the details of our locations UINavigationController is the third common way to handle navigation iOS.
to work, we need to create our own delegate pattern. We could use cellForRowAtIndexPath like before for one button, but we would still need a delegate to handle the other button.
it were strong, it would increment delegate’s retain count by 1. Our instance of MSTableViewCell would own the delegate. But in our favorite’s view, we’re assigning self to the delegate.
created the local variable ‘cell’, we’re creating a strong pointer to that cell. If the cell’s pointer to its delegate were strong, then assigning the view controller to the delegate would create a retain cycle
3 objects NSMutableURLRequest, NSURLSession, and NSURLSessionDataTask to get data from a server. Like other managers we’ve used, they’re just subclasses of NSObject but with extra properties and methods to facilitate interactive with a remote server.
powerful, are missing features that a full-fledged, network-based application may need. Many companies and indie developers use the AFNetworking 3rd-party library which uses these objects under the hood.