From the course: Advanced iOS App Development: MapKit & Core Location
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Launching the maps app - iOS Tutorial
From the course: Advanced iOS App Development: MapKit & Core Location
Launching the maps app
- [Narrator] You've built the app and are seeing directions between restaurants. However, I set this app up to work only with automobile directions. What would happen if you were walking or riding the bus? Shut down the app and go back to the find directions method in the view controller swift file. Find where it said automobile and change that to walking. Hit run, go to Chicago and hit find. You get a very different route. Beverly Hills doesn't change at all because it only has one short route. Go ahead and stop the app. Change the transport type again. You'll see transit, type that. Run it again. Once again click Chicago and find. This time we get nothing, but we do get an error. Public transportation directions do not exist in MapKit, only in Apple Maps. While you can get an ETA for MapKit, you can't get the directions. You have to launch Apple Maps. I'll go through the basic launch of Apple Maps. If you want to do more than that, I suggest reading Apple's documentation on…
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.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Request directions6m 27s
-
(Locked)
Display graphic directions7m 38s
-
(Locked)
Display step-by-step directions6m 27s
-
(Locked)
Challenge 7: The chosen path27s
-
(Locked)
Solution 7: The chosen path1m 2s
-
(Locked)
Launching the maps app6m 34s
-
(Locked)
Final challenge: Transit ETA annotation45s
-
(Locked)
Final solution: Transit ETA annotation6m 14s
-
(Locked)
-