Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
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
Author (1):
Arrow left icon
 D'areglia D'areglia
Author Profile Icon D'areglia
D'areglia
Arrow right icon
View More author details
Toc

Connecting user interfaces with your code


Putting a new element inside your interface files is extremely simple. You just have to select one of the available objects from the objects library and drag and drop it inside the interface editor.

For example, let's say you want to create the user interface for a subclass of UIViewController called SignInViewController that implements user sign-in. The first step is to drag and drop a view controller object inside the Storyboard interface editor. Then, select the newly added view controller, and from the Identity inspector (third button on the right-hand side panel), update the information of the custom class area, specifying the name SignInViewController as the class name. The view controller you see inside the interface editor is now an instance of this class, and you can draw and connect the necessary elements and methods.

In the SignInViewController class, you defined the username and password text fields and the signIn method. The two text fields...

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 £13.99/month. Cancel anytime
Visually different images