Table views have two ways of getting data—statically or dynamically. When a table view’s controller implements the required UITableViewDataSource
methods, the table view asks its view controller for data to display, regardless of whether static data has been configured in Interface Builder. If you look at XYZToDoListViewController.m
, you’ll notice that it implements three methods—numberOfSectionsInTableView:
, tableView:numberOfRowsInSection:
, and tableView:cellForRowAtIndexPath:
. You can get your static data to display again by commenting out the implementations of these methods. Go ahead and try that out if you like.