iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK
by Kyle Richter, Joe Keeley
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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access