Add Preferences

If you go international, roaming charges could make your app prohibitively expensive to use, and the user may want to turn off those features that use the Internet in your app. There are also some features in the app (see an example in the upcoming section, “Monitor the Current Location’s Distance from the Destination”) that the user may want to use only under certain circumstances, such as tracking and notifying you of how far away your are from your final destination or a specified location (or even the wonderful car sound). To make for happy users, you want to program any optional-able features to be present based on a preference setting — and enable setting preferences both through the Settings application as well as in the RoadTrip app.

Get iPad Application Development For Dummies, 3rd Edition 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.