-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Building Apple Watch Projects
By :
Now we get to play with some new stuff.
Apple's Core Location framework provides a wealth of functionality around tracking a user's location. Although we will only scratch the surface in this app, you will see that a CLLocation object contains a set of data about the user's geo-coordinates and time-zone, speed of motion, and a time-stamp.
If we wish to access location data, we need to ask permission of the user before we can get a response to our requests to the operating system. And to do this we must first inform the system of our app's need to do so. We do this by adding an entry into the iPhone's Info.plist file.
The easiest way to do this is to Control-click the file in the project navigator and select Open As | Source Code from the contextual menu.
Be careful, don't confuse this with the watch app's identically named Info.plist file!
Add the following entry to the XML text contained in the file, immediately after <dict>, on...
Change the font size
Change margin width
Change background colour