Building the User Interface

The user interface of this app needs to be quite simple, as the app will be used while the user is walking around outside. It should be easy to use without requiring much thought.

The simplest user interface for the features we’re trying to build has a map and three buttons: one to start and stop the tracking, one to clear the data, and one to share the drawing with friends and family. It will look like this:

images/Map/map_and_three_buttons_simulator.png

Creating the View

Press N to add another Cocoa Touch Class to the project. Type the name DrawView in the Class text field and make it a subclass of UIView. Click Next and then click Create. Remove the comment ...

Get Build Location-Based Projects for iOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.