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.

Customize the annotation graphics

Customize the annotation graphics - iOS Tutorial

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

Start my 1-month free trial

Customize the annotation graphics

- [Instructor] We've added text to our call-out, but that's not all we can add. You can use graphics to change to appearance on the annotation from a pin, and add graphics to your call-out. We'll need some images to do this. In the download folder, you'll find a folder named Assets, so shut off the app, go to the folder and go to Assets. You'll find a whole bunch of different images. Select all those images, head over to Assets, that XE Assets, and just drag all of them into the left column, and they'll all set up just the way we want. Then head back to view controller dot swift, and go to the map view, view for, delegate method. I'm going to change from a pin to a custom icon first. And there's two steps I need to do here. When you're working from scratch and want a custom annotation view, you use a MK annotation view instead of the MK pin annotation view. So I got to get rid of all my pin annotation views. So, the first one here is on the top. Instead of annotation view being a pin…

Contents