Map Kit View

The last thing we need to do is to set up our Map tab. Select the Main.storyboard file and find the View Controller connected to the Map tab:

Let's get started:

  1. Open the Object Library (Command + shift + L), then type map.
  2. Drag and drop Map Kit View onto the Map View Controller:

  1. Select the Pin icon and enter the following values:
    • All values under Add New Constraints are set to 0.
    • Uncheck the Constrain to margins checkbox. 
    • Click on Add 4 Constraints.
  2. Your View Controller should look like the following when you are done:

Get iOS 12 Programming for Beginners - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.