Sliders enable users to change a value by sliding a ticker back and forth. Progress bars are for displaying the progress of a task. See how to use both in this video.
- [Instructor] A slider component allows…you to click and drag a slider on the screen.…You can control whether you want…to have an object be updated as the slider moves.…Let's take a look at how that works.…I'll open up the Library…and bring out a slider onto the screen.…I'll just stretch the handle on the right…to have it fill the width of the screen.…Then I'll open up the Library again,…filter for a label this time,…press the Return key to drop one on the screen…and I'll place it right about here,…stretch it out just a little bit.…
Now I'll Shift-click the slider…and then press Shift-Option-Command and equals…to have X-Code create some constraints for me.…Now let's connect these objects to code…by Option-clicking ViewController.swift,…and then right-clicking and dragging the label…into the code underneath your declaration of ViewController.…We'll call this label, and hit Connect or Return.…So there's our label property right there,…and then for the slider, rather than creating a property…for it, we're going to handle the slider changed event.…
- Alert controllers and actions
- Sliders, progress bars, and switches
- Creating UI elements with code
- Displaying web content with Safari view controllers and WKWebView
- Creating collection view controllers
- Creating tabbed apps
- Publishing your app with App Store Connect
Skill Level Beginner
1. Master Views
2. Display Web Content
3. Collection Views
4. Multiview Templates
Customize a table view cell4m 18s
5. Publish an App
Next steps3m 28s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.