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 10 Programming for Beginners

You're reading from   iOS 10 Programming for Beginners Explore the latest iOS 10 and Swift 3 features

Arrow left icon
Product type Paperback
Published in Dec 2016
Publisher Packt
ISBN-13 9781786464507
Length 678 pages
Edition 1st 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 (20) Chapters Close

Preface 1. Getting Familiar with Xcode FREE CHAPTER 2. Building a Foundation with Swift 3. Digging Deeper 4. Digging into Collections 5. Starting the UI Setup 6. Setting Up UI 7. Getting Started with the Grid 8. Getting Started with the List 9. Working More with Lists 10. Where Are We? 11. Where's My Data? 12. Foodie Reviews 13. Saving Reviews 14. Universal 15. iMessages 16. Notifications 17. Just a Peek 18. Beta and Store Submission Index

Address section


Let's start with the Address section:

In this section, we are going to add three UI elements: image, label, and map.

  1. In the filter field of the Object library in the Utilities panel, type image.

  2. Drag the UIImage into the Content View of the 7th row.

    Tip

    To ensure you are dragging the UI element into the correct area, it is easier to drag it into the Outline view.

  3. Next, in the filter field, type label.

  4. Drag the UILabel into the Content View of the 7th row:

  5. Now, in the filter field, type map.

  6. Drag the MapKit into the Content View of the 8th row:

We now have all of our UI elements for the address section. Let's properly size them and place them in the correct spots:

  1. Select Map View in the Outline view, if it is not already selected, and in the Utilities panel, select the Attributes Inspector.

  2. Uncheck everything in Map View, except Buildings and Points of Interest:

  3. In the Utilities panel, select the Size Inspector and update the following values:

    • X: 0

    • Y: 0

    • Width: 375

    • Height: 240

  4. In the Outline...

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