Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning iOS UI Development

You're reading from   Learning iOS UI Development Implement complex iOS user interfaces with ease using Swift

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785288197
Length 196 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (11) Chapters Close

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:

Working with XIB files

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

Working with XIB files

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime