iOS 12 Programming for Beginners
eBook - ePub

iOS 12 Programming for Beginners

An introductory guide to iOS app development with Swift 4.2 and Xcode 10, 3rd Edition

Craig Clayton

  1. 692 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

iOS 12 Programming for Beginners

An introductory guide to iOS app development with Swift 4.2 and Xcode 10, 3rd Edition

Craig Clayton

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

Begin your iOS 12 app development journey with this practical guide

Key Features

  • Kick-start your iOS programming career and have fun building iOS apps of your choice
  • Get to grips with Xcode 10 and Swift 4.2, the building blocks of iOS development
  • Discover the latest features of iOS 12 - SiriKit, notifications, and much more

Book Description

Want to build iOS 12 applications from scratch with the latest Swift 4.2 language and Xcode 10 by your side? Forget sifting through tutorials and blog posts; this book is a direct route to iOS development, taking you through the basics and showing you how to put principles into practice. Take advantage of this developer-friendly guide and start building applications that may just take the App Store by storm!

If you're already an experienced programmer, you can jump right in and learn the latest iOS 12 features. For beginners, this book starts by introducing you to iOS development as you learn Xcode and Swift. You'll also study advanced iOS design topics, such as gestures and animations, to give your app the edge. You'll explore the latest Swift 4.2 and iOS 12 developments by incorporating new features, such as the latest in notifications, custom-UI notifications, maps, and the recent additions in Sirikit. The book will guide you in using TestFlight to quickly get to grips with everything you need to get your project on the App Store.

By the end of this book, you'll be ready to start building your own cool iOS applications confidently.

What you will learn

  • Explore the distinctive design principles that define the iOS user experience
  • Navigate panels within an Xcode project
  • Use the latest Xcode asset catalogue of Xcode 10
  • Create a playgrounds project within your projects and understand how Ranges and Control flow work
  • Study operations with integers and work your way through if statements
  • Build a responsive UI and add privacy to your custom-rich notifications
  • Set up Sirikit to add voice for Siri shortcuts
  • Collect valuable feedback with TestFlight before releasing your apps on the App Store

Who this book is for

This book is for you if you are completely new to Swift, iOS, or programming and want to make iOS applications. However, you'll also find this book useful if you're an experienced programmer looking to explore the latest iOS 12 features.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es iOS 12 Programming for Beginners un PDF/ePUB en línea?
Sí, puedes acceder a iOS 12 Programming for Beginners de Craig Clayton en formato PDF o ePUB, así como a otros libros populares de Computer Science y Programming Mobile Devices. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2018
ISBN
9781789348354
Edición
3
Categoría
Computer Science

Getting Started with the List

When I started doing iOS development, I first worked with Table Views. At the time, Collection Views hadn't been introduced yet. As you progress in iOS development, you will work with a lot of Table and Collection Views. You'll begin with just the basics to allow you to use them, and then you'll slowly progress into more advanced Table and Collection Views.
The reason that I bring this up is that, by the end of this chapter, you may feel as though things are not clicking. This is perfectly normal. However, the more you go through the steps in these chapters, the more they will become second nature to you.
For those of you who've not done iOS development, Table Views are great for presenting a list of data. The iPhone's Mail app is an example of a Table View.
In this chapter, we are going to work with our first Table View. In our Let's Eat app, users select a specific location to look for restaurants.
In this chapter, we will cover the following topics:
  • Understanding Table Views
  • Creating our first property list (plist)
  • Creating our location data manager
  • Cleaning up our file structure

Understanding Table Views

The first thing we want to do is get access to all of the UI and Playgrounds' components that we will need. At the very top of the playground, please add the following two import statements:
import UIKit
import PlaygroundSupport
The first import statement imports all of the UI elements we will need. The second import gives us access to Playgrounds support; this will allow us to add our UI elements into Playgrounds. Now, let's create our first UIViewController. This setup is pretty much the same structure I like to use for all of my classes that are controllers. Add a line break and then add the following code:
class TableViewExampleController: UIViewController {

}
This code looks pretty similar to what we did in the last chapter. We created a class named TableViewExampleController and we subclassed UIViewController. Next, we need to create a UITableView and an array of data to display in our tableView. Let's do that next by adding the following inside of our curly braces:
var tableView:UITableView?
var names:[String] = ["Deanna","Corliss","Deyvn"]
After you add the variable, your complete code should look like the following:
class TableViewExampleController: UIViewController {
var tableView:UITableView?
var names:[String] = ["Deanna","Corliss","Deyvn"]
}
This is the variable we will use for our UITableView. Here, we have an array with three names. The next thing we should do is c...

Índice

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