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
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

Restaurant listing

Now that we have our Explore listing going to our restaurant listing, we need to get our Collection View connected to our RestaurantListViewController. To do so, perform the following steps:

  1. Right-click inside of the Restuaurants folder and select New File.
  2. Inside of the template screen, select iOS at the top and then Cocoa Touch Class, then hit Next. You should now see an options screen. Add the following under New file:
    • Class: RestaurantListViewController
    • Subclass: UIViewController
    • Also create XIB: Unchecked
    • Language: Swift

After hitting Next, you will be asked to create this file.

  1. Select Create.
  2. Let's delete both didReceiveMemoryWarning() and prepare() (which has been commented out), as we do not need them at this time.
  3. Open Restaurants.storyboard.
  4. SelectUIViewController in the Utility Panel, and select the Identity inspector, which is the third...
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