Reader small image

You're reading from  iOS 17 Programming for Beginners - Eighth Edition

Product typeBook
Published inOct 2023
Reading LevelBeginner
PublisherPackt
ISBN-139781837630561
Edition8th Edition
Languages
Tools
Right arrow
Author (1)
Ahmad Sahar
Ahmad Sahar
author image
Ahmad Sahar

Ahmad Sahar is a trainer, presenter, and consultant at Tomafuwi Productions, specializing in conducting training courses for macOS and iOS, macOS Support Essentials certification courses, and iOS Development courses. He is a member of the DevCon iOS and MyCocoaHeads online communities in Malaysia and has conducted presentations and talks for both groups. In his spare time, he likes building and programming LEGO Mindstorms robots.
Read more about Ahmad Sahar

Right arrow

Implementing the Map screen

When you launch the app, the Journal List screen is displayed. Tapping the Map button in the tab bar makes the Map screen appear, but it is blank. To make the Map screen display a map, you’ll add a map view to the view in the view controller scene for the Map screen. Follow these steps:

  1. Select the view controller scene for the Map screen in the document outline:

Figure 12.9: Editor area showing view controller scene

  1. To make this scene display a map, click the Library button and type map in the filter field. A Map Kit View object appears as one of the results. Drag it to the view in the view controller scene:

Figure 12.10: Library with Map Kit View object selected

  1. The map should fill the whole screen. With the map view selected, click the Add New Constraints button:

Figure 12.11: View controller scene with map view selected

  1. Type 0 into all the Spacing to nearest...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
iOS 17 Programming for Beginners - Eighth Edition
Published in: Oct 2023Publisher: PacktISBN-13: 9781837630561

Author (1)

author image
Ahmad Sahar

Ahmad Sahar is a trainer, presenter, and consultant at Tomafuwi Productions, specializing in conducting training courses for macOS and iOS, macOS Support Essentials certification courses, and iOS Development courses. He is a member of the DevCon iOS and MyCocoaHeads online communities in Malaysia and has conducted presentations and talks for both groups. In his spare time, he likes building and programming LEGO Mindstorms robots.
Read more about Ahmad Sahar