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
classAn interface and its
WKInterfaceController
, to present the plotted data in table formThe table row controller,...