Book Image

Learning iOS UI Development

Book Image

Learning iOS UI Development

Overview of this book

Through this comprehensive one-stop guide, you’ll get to grips with the entire UIKit framework and in a flash, you’ll be creating modern user interfaces for your iOS devices using Swift. Starting with an overview of the iOS drawing system and the available tools, you will then learn how to use these technologies to create adaptable layouts and custom elements for your applications. Next, you’ll be introduced to other topics such as animation and code-drawing with Core Graphics, which will give you all the knowledge you need to create astonishing user interfaces. By the end of this book, you will have a solid foundation in iOS user interface development and will have gained valuable insights on the process of building firm and complex UIs.
Table of Contents (16 chapters)
Learning iOS UI Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with XIB files


Even if an XIB file can be used in different ways, its most common use is defining the interface of a single-view controller.

When you create a new view controller, you can flag the choice Also create XIB file to automatically associate an XIB file to the new view controller:

When you open the XIB file with the interface editor, you'll see that the document outline already contains some elements:

The Placeholders section includes two proxy objects that you most likely won't need to update. The File's Owner section describes the class that will own the interface created through the XIB file. In this case, this object represents the view controller class that you create with the XIB file. If you haven't used the wizard to create the XIB file, you need to set up this element manually from the Identity inspector, filling the Class field with the name of the class that you want as the owner of this interface.

The First Responder section is a proxy to any object that, at any...