Open the Hello Location application we created in Chapter 1 and run the application.
1. If you are running your app on the iOS Simulator, then go to the Debug | Location Menu option where you can simulate multiple location inputs for your app, as shown in the following screenshot:
2. If you are running your app on a connected device, you need to go to the Product | Debug | Simulate Location menu option in the Xcode 4 menu bar.
3. Try changing to different locations and testing the app by clicking the Detect Location button in the app.
Location data is reported in your application via the Core Location's Delegate
object, CLLocationManagerDelegate
. Based on the location service type used in your app, the corresponding Core Location Delegate
function has to be implemented by your application to catch the appropriate location change event. We will look at it as we inspect the different Core Location Services.