Skip to Content
Swift OS X Programming for Absolute Beginners
book

Swift OS X Programming for Absolute Beginners

by Wallace Wang
August 2015
Beginner content levelBeginner
572 pages
12h 22m
English
Apress
Content preview from Swift OS X Programming for Absolute Beginners

Chapter    14

Working with Views and Storyboards

The most common part of every program’s user interface is a window that displays items such as buttons and text fields. In Xcode, windows are called views. In all but the simplest programs, a user interface will likely consist of two or more windows or views. That means your program needs to know how to open additional windows and close them again.

The two ways to create and store views are .xib files and .storyboard files. An .xib file holds one view so if you need to display multiple views, you’ll need to create multiple .xib files. A .storyboard file can hold one or more views.

You can create user interfaces with either .xib or .storyboard files, or a combination of both. Generally, .storyboard ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Swift for Absolute Beginners

Swift for Absolute Beginners

Gary Bennett, Brad Lees

Publisher Resources

ISBN: 9781484212332Purchase book