Book Image

Swift 2 Blueprints

By : Cecil Costa
Book Image

Swift 2 Blueprints

By: Cecil Costa

Overview of this book

In this book, you will work through seven different projects to get you hands-on with developing amazing applications for iOS devices. We start off with a project that teaches you how to build a utility app using Swift. Moving on, we cover the concepts behind developing an entertainment or social networking related application, for example, a small application that helps you to share images, audio, and video files from one device to another. You’ll also be guided through create a city information app with customized table views, a reminder app for the Apple Watch, and a game app using SpriteKit. By the end of this book, you will have the required skillset to develop various types of iOS applications with Swift that can run on different iOS devices. You will also be well versed with complex techniques that can be used to enhance the performance of your applications.
Table of Contents (15 chapters)
Swift 2 Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Developing the edition space


Return to the storyboard and add a new view controller to it. Here, we will have to perform a few steps. We will start by creating the exit point by control-dragging it from the view controller icon (yellow circle with a square in it) to the Exit icon (a square with an arrow). The idea behind this is to create an exit point that will allow us to return to the main screen:

Once you release the mouse button, a popup will appear asking you to choose the exit point. In this case, there will be only one exit point called Unwind. Click on it and a new icon will appear on the document outline.

Select the symbol, go to its attribute inspector, and set its identifier to restart. Remember this identifier; we are going to use it later, while exiting to the main view.

We will now focus on the view controller's layout. We have to add three buttons to the top and set their titles to Text, Hat, and Circle, respectively.

Under these buttons, add a new view. As everything has the...