A segmented control displays a list of options that a user can choose from.
Each segment sort of looks like a radio button, the segments remains
“pressed” even after the user selects the control. In this tutorial we
create 2 segments inside a UISegmentedController. Each segment will display
a different text value on a label. This tutorial is made with Xcode 8 and
built for iOS 10.