O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interface Challenge

As you would expect, the Distance app displays the total distance the user has traveled. Beyond that, though, it displays all the latest location data, including timestamp, latitude, longitude, accuracy data, and elevation. With all this data to display, there are quite a few outlets to hook up, but it will all be worth it when you can see exactly what location data your phone is generating.

First Steps

Follow these steps to get started building the Distance interface:
1. Create a new View-based Application and name it “Distance.”
2. Edit the DistanceViewController nib file so it matches the following image:
455
Build your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required