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

Testing the App

Now, save the project, build it, hope you didn’t make any typos, and let it fly in the iPhone Simulator. When the view comes up, it should sit with no data for a couple seconds, and then display all the information for a single data point. You will see the following values:
• 0.00 miles
• Location count: 1
• Date: (The current date)
• Latitude: 37.331689
• Longitude: -122.030731
• Uncertainty radius: 100.00 meters
• Altitude: 0.00 meters
• Altitude accuracy: -1.00 meters
If you do see these values, then congrats! You have written your first location-enabled application. If you had problems or just can’t get the application to work, full source code for the finished Distance application is available online at http://troybrant.net/iphonebook/chapter18/Distance-done.zip ...

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