Picker views can contain multiple components, which allow you to have multiple sets of spinning data. This video shows how to set them up and use them.
- [Instructor] So we've looked at handling simple…PickerView data populating it…using a String array.…But what if you wanted to have multiple…columns in your PickerView?…Well, there are multiple ways to do that.…One of which is to create additional arrays.…So we could have our data…array or column one array,…a column two array and a column three array.…If you want to condense that down a little bit,…you can make a two dimensional array.…So to do that we take our String array for our data…and we wrap that inside of an array.…
So it's an array of String arrays.…And what I'm going to do…is just type an open square bracket…before this open square bracket…when we're defining our array.…And then type a closed square bracket…after the closing square bracket.…So we now have an array of String arrays.…It only has one String array inside of it.…To make it a little bit easier to read…I'm going to go in between these first two…open square brackets and create a new line.…
And then I'm going to between these two…closed square brackets and create a new line as well.…
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