Sliders enable users to change a value by sliding a ticker back and forth. Progress bars are for displaying the progress of a task. In this video, see how to use both.
- [Instructor] Let's look at using…sliders and progress bars.…The reason why we're looking at…those two components in one movie…is because they're almost identical.…Let's filter for a slider in the object library,…and just drag it onto the screen.…I'll just grab that right handle…and stretch it out a little bit.…Like so, that looks good.…Then I'm going to filter for a progress bar,…just click and drag that out.…I'll make it roughly the same size…as my slider, and that looks good.…
You can get some information and settings…for the slider and the progress bar…by selecting them, and then looking…in the attributes inspector.…Here for the slider, we see the…value, minimum, and the maximum.…Now, we've talked about, in previous courses,…about how we can adjust some settings for a slider.…The other settings, I'm going to ignore for now,…and I'm going to look at changing the value.…We have the value at zero, which is the minimum,…so if the slider's all the way to the left,…that's a value of zero, and the maximum is one,…which is all the way to the right.…
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