Exercises

1. Geofence events can occur while the app is in the background, but the app cannot display an alert while it is in the background. Enhance the sample app to send a local notification when a geofence event is received in the background, and an alert while the app is active. Hint: Refer to Chapter 16, “Working with Background Tasks,” and Chapter 9, “Notifications,” for more info on those topics.

2. Currently in the sample app, when a user taps a pin for a favorite place to display the callout, and then taps the right detail disclosure button, a view to edit the details of the favorite place is presented modally. Modify this to present the detailed view in a popover, using the pin as an anchor point. While the popup is being presented, ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.