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.

Interactive annotations

Interactive annotations - iOS Tutorial

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

Start my 1-month free trial

Interactive annotations

- [Instructor] We have a problem, there's more text than space for it. The best solution is to put it somewhere else. Either another view on this page, or modal controller. If you do, how do you tell the call-out to go there? There's another MapKit delegate method here to help. Go ahead and stop the app. Change the paragraph text to subtitle. Let's also go back and make this a single line subtitle. Paragraph. Number of lines equals one. And we'll add another paragraph. Adjust font size to fit width. To be true. Under the other two call-out accessory views, let's add the right call-out accessory view. Annotation view. Right call-out accessory view. And that, going to be a UI button. Type info light. Change your simulator back to the iPhone 7 Plus. Go ahead and run. Sticking with Naples for right now, just click the button. You can see the pizza. You got our title and subtitle. And you get a button. Now the button doesn't do anything. So how do we get the action in there? And that we do…

Contents