Book Image

Swift Essentials - Second Edition

By : Alex Blewitt
Book Image

Swift Essentials - Second Edition

By: Alex Blewitt

Overview of this book

Swift was considered one of the biggest innovations last year, and certainly with Swift 2 announced at WWDC in 2015, this segment of the developer space will continue to be hot and dominating. This is a fast-paced guide to provide an overview of Swift programming and then walks you through in detail how to write iOS applications. Progress through chapters on custom views, networking, parsing and build a complete application as a Git repository, all by using Swift as the core language
Table of Contents (17 chapters)
Swift Essentials Second Edition
About the Author
About the Reviewer

An overview of UIView

All iOS views are rooted in an Objective-C class called UIView, which comes from the UIKit framework/module. The UIView class represents a rectangular space that may be associated with UIWindow or constructed to represent an off-screen view. Views that perform user interactions are generally subclasses of UIControl. Both UIView and UIViewController inherit from the UIResponder class, which in turn inherits from NSObject:

On Mac OS X, views are rooted in NSView and come from the AppKit framework. Otherwise, these two implementations are very similar. A new Xcode project will be used to create custom view classes. Create a new project called CustomViews that is based on the Tabbed Application template. To start with a blank sheet, delete the generated view controllers from the Main.storyboard and their associated FirstViewController and SecondViewController classes.