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

Get Learning iOS UI Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.