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 2: Add more annotations

Solution 2: Add more annotations - iOS Tutorial

From the course: Advanced iOS App Development: MapKit & Core Location

Start my 1-month free trial

Solution 2: Add more annotations

(short bright music) - [Instructor] Let's look at the solutions. Now, the other thing I need to do here is actually get that little ExtraPizza text file and kind of just do some copying here. And so I'm just going to copy, first of all, the Chicago one. And I'm going to stick this just after Chatham. And I did not say this, but this one actually happens in 1972, so it makes sense to put these in historical order and that would be between Chatham and Beverly Hills. And I'm just going to paste this here for the second. Okay, and we'll come back to that. And then I'm going to paste the other one from TextEdit. And that one goes on the bottom. Paste that one in place. Comment that. And now I'll start putting together my annotations. And so for Chicago II, I'll start with annotation = PizzaAnnotation. And then I'll have the coordinate. And the coordinate, again, was in my ViewController. So I'll shoot up the top of the ViewController here. And that would be Chicago's the 2121 North Clark…

Contents