Once you've created a custom data type for use in a collection view, you can load it into the collection view. See how that process works in this brief tutorial.
- [Instructor] Now let's associate our data model…with our collection view.…I'm going to hide the navigation area to get a little bit…more space and I'm going to modify these lines of code…just a little bit.…I'm going to select iteminfo cut it with Command X,…double click where it says item right here and then paste.…That way we can do the same thing on one line of code…instead of two.…The reason for that is because we're going to be duplicating…this line a few times and just creates a less code…in our application.…
So what I'm going to do here is select this line,…copy it, and then paste it as many times as you like…modifying each item so you should then have items…one through ten or five or however many you want to create.…Make sure you modify both the item name and the description…as well.…So once you've done that, you should have several items…that you can work with and they should all be in the array.…And after you've done that we can then associate…these array objects with our collection view or modify…
- 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.