This is a very simple demonstration of tracking a user's location and plotting their path on a map in iOS. This project does not use any .nib files or Storyboards and is written in all-native Objective-C code.
Used Tech
- CLLocationManager
- MKMapView
- NSTimer
Features
- Finds current location
- Start/Reset A Walk (changes title graphic from 'Walk' to 'Walking')
- Tracks and updates location on a map view
- Stores Lat/Long values
- Tracks time on the walk
- Calculates total distance
- Displays route, distance and time when finished
Known Issues
- Map view on View Walk Route page does not zoom in/out properly to fit the user's path. Need to calculate min/max lat/longs for determine best zoom level
- Back button is not custom
- No title on View Walk Route page
Written by Daniel Burke, D2 Development