Unlike table views, collection views require customized cells. In this video, see all the steps involved in creating custom collection view cells, so that you can customize your collection views in your iOS apps.
- [Instructor] Our next step is to customize our cells.…So with CollectionViewController.swift selected,…I'm going to create a new cell class.…So under iOS Cocoa Touch Class, I'll hit Next.…Then I'm going to make this a subclass…of UICollectionViewCell.…And the default name, CollectionViewCell, is fine.…So I'll hit Next, and then return to create the class.…Here, we don't need to make any changes yet.…Let's head over to Main.storyboard,…and we're going to customize our cell,…so I'm going to click and drag,…scale it out a little bit,…and then I'm going to connect it…to my CollectionViewCell class.…
Open up the inspector area,…and head over to the identity inspector.…That's to the left of the attributes inspector.…Call this CollectionViewCell, and then hit Return.…That connects our item in our user interface to our class.…Now we're going to change the backgrounds…so we have some contrast between…the cell and the background.…Go to the attributes inspector,…hit the Background dropdown and choose some color.…I'm going to choose system green color.…
- Advanced UI controls
- Creating alert controllers
- Displaying web content
- Creating a collection view controller
- Creating a custom data type
- Creating tabbed apps
- Importing and setting icons for your apps
- Publishing your app to the App Store
Skill Level Beginner
iOS and watchOS App Development: Notificationswith Steven Lipton3h 45m Intermediate
1. Mastering Views
2. Display Web Content
3. Collection Views
4. Multi-View Templates
5. Publish an App
Next steps1m 21s
- 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.