Book Image

iOS 14 Programming for Beginners - Fifth Edition

By : Ahmad Sahar
Book Image

iOS 14 Programming for Beginners - Fifth Edition

By: Ahmad Sahar

Overview of this book

If you're looking to work and experiment with powerful iOS 14 features such as widgets and App Clips to create your own apps, this iOS programming guide is for you. The book offers a comprehensive introduction for experienced programmers who are new to iOS, taking you through the entire process of learning the Swift language, writing your own apps, and publishing them on the App Store. Fully updated to cover the new iOS 14 features, along with Xcode 12 and Swift 5.3, this fifth edition of iOS 14 Programming for Beginners starts with an introduction to the Swift programming language and shows you how to accomplish common programming tasks with it. You'll then start building the user interface (UI) of a complete real-world app using the storyboards feature in the latest version of Xcode and implement the code for views, view controllers, data managers, and other aspects of mobile apps. The book will also help you apply iOS 14 features to existing apps and introduce you to SwiftUI, a new way to build apps for all Apple devices. Finally, you’ll set up testers for your app and understand what you need to do to publish your app on the App Store. By the end of this book, you'll not only be well versed in writing and publishing applications, but you’ll also be able to apply your iOS development skills to enhance existing apps.
Table of Contents (31 chapters)
1
Section 1: Swift
10
Section 2:Design
15
Section 3:Code
24
Section 4:Features

What this book covers

Chapter 1, Getting Familiar with Xcode, takes you through a tour of Xcode and talks about all the different panes that you will use throughout the book.

Chapter 2, Simple Values and Types, deals with how values and types are implemented by the Swift language.

Chapter 3, Conditionals and Optionals, shows how if and switch statements are implemented, and how to implement variables that may or may not have a value.

Chapter 4, Range Operators and Loops, shows how to work with ranges and the different ways loops are implemented in Swift.

Chapter 5, Collection Types, covers the common collection types, which are arrays, dictionaries, and sets.

Chapter 6, Functions and Closures, covers how you can group instructions together using functions and closures.

Chapter 7, Classes, Structures, and Enumerations, talks about how complex objects containing state and behavior are represented in Swift.

Chapter 8, Protocols, Extensions, and Error Handling, talks about creating protocols that complex data types can adopt, extending the capabilities of existing types, and how to handle errors in your code.

Chapter 9, Setting Up the User Interface, deals with creating the Let's Eat app, adding graphical assets, and setting up the initial screen that the users will see.

Chapter 10, Building Your User Interface, covers setting up the main screen for the Let's Eat app.

Chapter 11, Finishing Up Your User Interface, covers setting up the remaining screens for the Let's Eat app.

Chapter 12, Modifying and Configuring Cells, is about designing the table and collection view cells in a storyboard.

Chapter 13, Getting Started with MVC and Collection Views, concerns working with collection views and how you can use them to display a grid of items.

Chapter 14, Getting Data into Collection Views, concerns the incorporation of data into collection views.

Chapter 15, Getting Started with Table Views, teaches you how to work with table views and takes an in-depth look at dynamic table views.

Chapter 16, Getting Started with MapKit, deals with working with MapKit and adding annotations to a map. You will also create custom annotations for your map.

Chapter 17, Getting Started with JSON Files, involves learning how to use a data manager class to read a JSON file and use the data inside your app.

Chapter 18, Displaying Data in a Static Table View, teaches you how to populate a static table view with data passed from one view controller to another using segues.

Chapter 19, Getting Started with Custom UIControls, takes a look at how to create your own custom views.

Chapter 20, Getting Started with Cameras and Photo Libraries, talks about working with the device's camera and photo library.

Chapter 21, Understanding Core Data, covers the basics of using Core Data, and how to save reviews and restaurant photos.

Chapter 22, Getting Started with Apple Silicon Macs, deals with modifying your app to work well on the iPad's larger screen, as well as how to make it work on an Apple Silicon Mac.

Chapter 23, Getting Started with SwiftUI, is about building an app using Apple's new SwiftUI technology.

Chapter 24, Getting Started with Widgets, shows you how you can add a widget for your app on your Home Screen.

Chapter 25, Getting Started with App Clips, shows you how you can add an app clip to your app, and provide relevant information to your users.

Chapter 26, Testing and Submitting Your App to the App Store, concerns how to test your apps with internal and external testers, as well as submitting apps to the App Store.