Create a UITableViewSource that's responsible for providing training room data to the view and the setup of each cell.
- [Instructor] Now it's time for us to go and take that data…from our shared library and populate this table.…Before we do that, we're gonna need to create a data source.…I'll go back to the TrainingRooms iOS,…gonna add a new item,…and this time I'm gonna go to the General…and just add a new class,…and I'll call it my RoomsDatasource.…The UITableView controller we created…is looking for a very specific type of data…from a UITableViewSource.…
I'm gonna find that in the UI kit,…and we'll go ahead and add a namespace…for our TrainingRooms, and we'll go make sure…we work with the references,…right-click References and Edit,…to add in that shared project.…I'll fix the capitalization here,…make sure we're bringing in the namespace we want.…So we're gonna have our private List of rooms,…a list of TrainingRoom, call that rooms,…and we'll add in the namespace…for System.Collections.Generic,…and we're gonna store, and when we create the data source,…we're gonna wanna pass in those rooms.…
We'll pass that in, and then we'll just store that…
- Cross-platform code reuse
- Visual Studio install guidelines
- Remote Windows development
- Creating a .NET Standard library
- Testing on an Emulator
- Navigating a segue
- Provisioning and testing on a device
- Using constraints for a layout
- Creating list views and detail views
Skill Level Beginner
1. Welcome to Xamarin
2. Xamarin on Mac
3. Xamarin on Windows
4. Building a Shared Library
5. Building an Android Application
6. Building an iOS Application
7. Building a UWP Application
Next steps1m 11s
- 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.