Final test

We now need to uncomment the code of the InterfaceController class's sendPlotsButtonTapped method, as shown here:

    @IBAction func sendPlotsButtonTapped() {
        WatchConnectivityManager.sharedManager.sendDataToWatch(
            locationManager.currentLocations)
    }

This enables us to send the data to the iPhone.

The app should now be fulfilling all of the specifications we set out at the beginning of this chapter. And you are hopefully now in the position to include Core Location code in any app that can make use of the data it returns, which is an increasingly large proportion of mobile apps in general.

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

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