From the course: Advanced iOS App Development: MapKit & Core Location
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Solution 5: Headings and speed - iOS Tutorial
From the course: Advanced iOS App Development: MapKit & Core Location
Solution 5: Headings and speed
- [Instructor] Okay, we're back. Here's how I put this together. First, I go the Delegate method. Did update locations and I'm going to add two strings. First one will be speed string. And I'm going to go from miles per hour and use 2.23694 mph. And then I'll do a heading string. Equal to quote space. Heading:\location.course and use option zero to get my degree mark. And then I'll make one more string. And catenating those two together. And with that done, I'll print that to the console. That's what you need to do. I'm going to do a couple more setup things before I run. First of all, I'm going to go back up to toggleMapFeatures. I'm going to use it as a switch to shut off location finding, so I'm going to disable location services here, and that way I can stop location updates as I'm working. And I noticed I made a typo. This should be services. So I'm going to go find all the disable location real quick and fix that. Alright, now we can go back up to the original one I had up here…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.