Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
iOS 12 Programming for Beginners

You're reading from   iOS 12 Programming for Beginners An introductory guide to iOS app development with Swift 4.2 and Xcode 10

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Packt
ISBN-13 9781789348668
Length 692 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Craig Clayton Craig Clayton
Author Profile Icon Craig Clayton
Craig Clayton
Arrow right icon
View More author details
Toc

Table of Contents (27) Chapters Close

Preface 1. Getting Familiar with Xcode FREE CHAPTER 2. Building a Foundation with Swift 3. Building on the Swift Foundation 4. Digging Deeper 5. Digging into Collections 6. Starting the UI Setup 7. Setting Up the Basic Structure 8. Building Our App Structure in Storyboard 9. Finishing Up Our App Structure in Storyboard 10. Designing Cells 11. Getting Started with the Grid 12. Getting Data into Our Grid 13. Getting Started with the List 14. Where Are We? 15. Working with an API 16. Displaying Data in Restaurant Detail 17. Foodie Reviews 18. Working with Photo Filters 19. Understanding Core Data 20. Saving Reviews 21. Universal 22. iMessages 23. Notifications 24. SiriKit 25. Beta and Store Submission 26. Other Books You May Enjoy

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:
  1. Run the project by hitting the Play button (or using Command + R) and selecting the Map tab:

We now have both tabs set up, but, as we progress through the book, we will add more scenes to the storyboard. The following is what your Main.storyboard file should look like:

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image