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

Implementing navigation with Storyboard and segues


The whole navigation of the application can be defined using Storyboards with the help of segues.

A segue is an instance of the UIStoryboardSegue class that is normally initialized directly through a Storyboard. Its main role is to define a relationship or transition between view controllers. There are essentially two kind of segues: a relationship segue, which is adopted with UINavigationViewController, UITabBarController, and UISplitViewController to define their children view controllers, and an adaptive segue, which is used to transition from one view controller to another.

Creating a segue is extremely simple. Let's say you want to define the relationship between a navigation view controller and its root view controller. You can press Ctrl and drag from the navigation view controller to the view controller you want to set as root.

The HUD that appears when you release the mouse button allows you to set the view controllers' relationship...

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