Setting up the project

So the actual flow of our user experience is very simple and is linear in nature—the user collects data, stores, and sends it to the iPhone, there are no branches in the user's behavior.

Requirements

We will need to make use of the following frameworks provided by WatchKit:

  • Core Location
  • Watch Connectivity

We have seen in previous chapters how to leverage Watch Connectivity and we will see shortly the few simple steps we need to take, in order to access core location.

As far as custom structures are concerned, we need to create the following classes:

  • Shared constants, to facilitate data exchange between the watch and the phone
  • A Watch Connectivity manager, as we have created in previous projects
  • A location manager to fetch and store location data and make it available to the interface controllers
  • The main user interface and its associated WKInterfaceController class
  • An interface and its WKInterfaceController, to present the plotted data in table form
  • The table row controller, to format the appearance of the displayed data

Begin by downloading the Plot Buddy Template folder from here (use the Download ZIP link):

https://github.com/codingTheHole/BuildingAppleWatchProjectsBook

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.15.161