We revisit the
Hello Location - Location Updatesexample from Chapter 3, Using Location in your iOS Apps Core Location, and add the heading component to our application. Here is what we will achieve: Our application will check for heading information, and as we move the device left/right, we will adjust the on-screen slider to reflect the change in the direction.
UISliderobject in our app in the
Hello_LocationViewController.hfile, and expose it as a property.
@property (strong, nonatomic) IBOutlet UISlider *XSlider;
UITextFieldthat will hold the
X, Y, and
Zvalues retrieved from the magnetometer. Of ...