Segmented controls allow you to create a tabbed UI object. This video explains how to create them, how to customize them, and how to respond to selection.
- [Narrator] Segmented controls…allow you to create a simple tabbed interface.…So in the object library I'm going to filter…for segmented control.…Click and drag one to the top left of my screen.…And then right when you select it,…you have this first and second tabs already created.…Now in the top section of the attributes…and specter you can change the style.…You can choose if you want the state…to be momentary or stay on the selected state.…Which we're not going to check momentary for now.…
For drag and drop, since we're not…going to be using drag and drop in this course,…we are going to ignore this setting.…But you can also come back to it later.…Once you're implementing drag and drop in your applications.…When I add a segment, you notice…that the size of the segmented control doesn't change.…So the segments themselves shrink down…to fit in the original size.…So you'll actually need to expand…the size a little bit, if you want to add more segments.…So let's say we wanted to give…this third segment a title of third.…
Instructor Todd Perkins shows how to use pickers, pop-up messages, sliders, switches, and indicators to build a sophisticated app interface, and display HTML content, files, and data with web views. Plus, learn how to dynamically update your layouts using size classes, and get a brief overview of the Apple Human Interface Guidelines.
- Picker views, controllers, sliders, and indicators
- Creating UI elements with code
- Displaying images with image views
- Creating web views to display web content
- Changing fonts, pins, and views with size classes