Nothing is better than seeing an application run for the first time in the simulator or on a real device. In this video, see how to add placeholder data to our TableView and test the full functionality of the application.
- [Instructor] All our hard work is about to pay off,…but before we run the app in the simulator again,…let's add some section titles to our TableView…and a bit of dummy data to our library ViewController.…Now since we don't have any data persistence,…the app will reset every time you run it,…and that's perfectly fine.…This is just a minimum viable product.…All we're doing is trying to test the basic functionality.…So while we're still in our library data service test,…let's start a new func…testTableViewSectionTitles_ShouldHaveCorrectStringValues.…
Now we need to pull out our section1Title…and we can do that by referencing our…LibraryTableView.dataSource.tableView…and we can access the delegate method for…titleForHeaderInSection.…Now for the TableView we want to reference,…it's our libraryTableView…and titleForHeaderInSection, zero.…We can't forget to force unwrap our TableView…that we've just used.…Let's do the exact same thing for section2Title.…
So we're going to have this equal to a…libraryTableView.datasource.tableView…
- What is test-driven development?
- Creating and expanding a data model
- Creating a manager class
- Testing class methods
- Checking for duplicates
- Testing table views
- Mocking cells
- Testing cell selection
- Assembling the app
Skill Level Intermediate
Advanced iOS Development: Working with APIswith Saul Mora1h 59m Intermediate
Designing iOS and Android Appswith Renata Phillippi1h 6m Intermediate
1. Foundation and Theory
2. Getting Started
3. The Manager Class
4. TableView Testing
5. Finishing Touches
- 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.