Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
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 (26) Chapters Close

iOS 10 Programming for Beginners
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
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

Preface

In this book, we will build a Restaurant Reservation app called Let's Eat. We will start the book off by exploring Xcode, our programming environment, which is also known as Interface Development Environment (IDE). Next, you will start learning the foundations of Swift, the programming language used in iOS apps. Once we are comfortable with the basics of Swift, we will dig deeper to build a more solid foundation.

After we have a solid foundation of using Swift, we will start creating the visual aspects of our Let's Eat app. During this process, we will work with storyboards and connect our apps structure together using segues. With our UI complete, we will go over the different ways that we can display data. To display our data in a grid, we will use Collection Views, and to display our data in a list, we will use Table Views.

We will also look at how to add basic and custom annotations on to a map. Finally, it's time to get real data; we will look at what an Application Programming Interface (API) is and how we can get real restaurant data into our Collection Views, Table Views, and Map.

We now have a complete app, but what about adding some bells and whistles? The first place we can add a feature will be on the restaurant detail page where we can add restaurant reviews. Here, users will be able to take or choose a picture and apply a filter on to their picture. They will also be able to give the restaurant a rating as well as a review. When they are done, we will save this data using Core Data.

Since we built our app to work on both iPhone and iPad, we should add the ability to make our app support iPad Multitasking. Doing this will allow our app to be open alongside another app at the same time.

If we want to be able to send our reservation to a friend, we can create a custom UI for iMessages, that will send them the details for the reservation along with the app it came from. The one thing missing from our app is the ability to notify the user with a custom notification to alert when they have an upcoming reservation.

Finally, let's create some quick access for our app using 3D touch, where by tapping our app icon, the user can quickly jump to their reservations. Now that we have added some bells and whistles, let's get this app to our friends using TestFlight, and finally get it into the App Store.

What this book covers

Chapter 1, Getting Familiar with Xcode, will take us through a tour of Xcode and talk about all of the different panels we will use throughout the book.

Chapter 2, Building a Foundation with Swift, deals with the basics of Swift.

Chapter 3, Digging Deeper, teaches us to build on our Swift foundation and learn some more basics of Swift.

Chapter 4, Digging into Collections, will talk about the different types of Collections.

Chapter 5, Starting the UI Setup, is about building the Let's Eat app. We will focus on getting our structure setup using storyboards.

Chapter 6, Setting Up UI, deals with working on our Let's Eat app in a storyboard.

Chapter 7, Getting Started with the Grid, is about working with Collection Views and how we can use them to display a grid of items.

Chapter 8, Getting Started with the List, teaches us to work with Table View and takes a deep look at dynamic Table Views.

Chapter 9, Working More with Lists, will talk about working with Table Views, but we will look at static Table Views.

Chapter 10, Where Are We?, deals with working with MapKit and learning how to add annotations to a map. We will also create custom annotations for our map.

Chapter 11, Where's My Data?, is about learning how to use a JSON API within our app.

Chapter 12, Foodie Reviews, talks about working with the phone's camera and library. We will then look at how to apply filters to our photos.

Chapter 13, Saving Reviews, wraps up Reviews by saving them using Core Data.

Chapter 14, Universal, deals with multitasking on the iPad, and how we can get an update to be supported on all devices.

Chapter 15, iMessages, is about building a custom message app UI. We will also create a framework to share data between both apps.

Chapter 16, Notifications, provides learning on how to build basic notifications. Then, we will look at embedding images into our notifications as well as building a custom UI.

Chapter 17, Just a Peek, looks at 3D touch and how to add quick actions to our app. We will also look at how we can add peek and pop to our restaurant list.

Chapter 18, Beta and Store Submission, is about how to submit apps for testing as well as submitting apps to the App Store.

What you need for this book

You will need a computer that runs Xcode 8 or greater.

Who this book is for

This book is for beginners who want to be able to create iOS applications. If you have some programming experience, this book is a great way to get a full understanding of how to create an iOS application from scratch and submit it to the App Store. You do not need any knowledge of Swift or any prior programming experience.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "You can add comments to your code, such as a TODO item or just a brief explanation of what something is doing."

A block of code is set as follows:

let arrOfInts:[Int] = []
let arrStrings = [String]()

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Once installed, launch Xcode, and you should see the following Welcome to Xcode screen."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading theexample code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.

  2. Hover the mouse pointer on the SUPPORT tab at the top.

  3. Click on Code Downloads & Errata.

  4. Enterthe name of the book in the Search box.

  5. Select the book for which you're looking to download the code files.

  6. Choose from the drop-down menu where you purchased this book from.

  7. Click on Code Download.

You can also download the code files by clicking on theCode Filesbutton on the book's webpage at the Packt Publishing website. This page can be accessed by entering the book's name in the Search box. Please note that you need to be logged into your Packt account.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows

  • Zipeg / iZip / UnRarX for Mac

  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/iOS-10-Programming-for-Beginners.We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/iOS10ProgrammingforBeginners_ColoredImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.

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 $15.99/month. Cancel anytime
Visually different images