Advanced User Interfaces Recap
01 - Alert Controllers
We use alert controller to display a message box to user depending on different situations. Alert Controllers can be used with both buttons as well as with text fields.
02 - Date Picker Views
Date Picker Views allow users to choose a certain date (or hour) from a convenient and familiar interface. We should also learn about standard time formats and how to compare dates and times against one another. Date picker views also offer different display modes.
03 - Custom Picker Views
We use custom picker views to display picker views with content that could be almost anything (labels, images, etc). We can also change the content of the sections independently as well as changing the sections based on each other.
04 - Container Views
Container views, allow us to embed one view controller within another one. A main advantage of this is to be able to share a view controller between two or more view controllers.
05 - IB Outlet Collection
IB Outlet Collections allow us to control multiple outlets using one variable.
06 - Navigation Controller
There are different segue controllers and methods for navigating from one view controller to another one. Navigation controller uses the show method which pushes the destination view controller onto the navigation stack, moving the source view controller out of the way (destination slides overtop from right to left), providing a back button for navigating back to the source - on all devices. For using Navigation Controllers, we can either start with a new Nav Controller and add our view controller as the “Root View Controller” or embed our existing view controllers within a Nav Controller.
07 - Separate Storyboards
We can use the Storyboard Reference in interface builder to get a reference to another storyboard for navigating between different storyboards. We could also load different storyboards using the file name in the code.
08 - Tab Bar Controllers
We can use tab bar controllers either as a part of the tabbed application template or by adding a tab bar to any UI view controller. In a tab bar controller scenario, we add the view controllers as the “viewcontrollers” variable of the main tabbed bar controller.
09 - Split View Controller
We use a split view controller in landscape mode of larger iPhone devices or on iPad devices to split the view between two different view controllers. Although this is primarily designed for Table Views, we could still use them for other types of view controllers as well.
10 - UI Pop Over Presentation
A UI Pop Over presentation is primarily used in iPad, and the destination VC appears in a small popover, and tapping anywhere outside of this popover will dismiss it. On iPhone, popovers are supported as well, but by default, if it performs a Popover Presentation segue, it will present the destination view controller modally over the full screen.