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

Creating reviews

We will have a form that users can use to write reviews. This Create Review form takes a name, a rating, a review, and an image, and will look like the following:

Creating reviews

To create this form, we will use a static Table View as we did with restaurant details. This makes it easier for us, because the static Table View comes with a lot of built-in functionality that we do not need to code. For example, keyboard dismissal and scrolling the View when a text area is tapped are all built-in to the static Table View.

Setting up the Review Storyboard

Let's now set up this static Table View:

  1. In the Outline view, select the Table View that we just added, and then open the Attributes Inspector in the Utilities panel.
  2. Under Table View, update Content from Dynamic Prototypes to Static Cells.
  3. Then, select Background in the Attributes Inspector; and under the Color Sliders tab, set the Hex Color # to F2F2F4 under RGB Sliders in the drop-down menu.
  4. Next, select the Table View Section 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
Banner background image