November 2013
Beginner
325 pages
9h 47m
English
You have a table view on the screen, but it does not display anything. As a view object, the table view does not contain anything about actual data. It needs an object to act as its data source. A table view’s data source tells the table view what to display.
In iTahDoodle, the table view’s data source will be the instance of BNRAppDelegate. For BNRAppDelegate to do this job, it must conform to the UITableViewDataSource protocol.
In BNRAppDelegate.h, declare that BNRAppDelegate conforms to UITableViewDataSource:
@interface BNRAppDelegate : UIResponder
<UIApplicationDelegate, UITableViewDataSource> @property (strong, nonatomic) UIWindow *window; @property (nonatomic) UITableView *taskTable; @property (nonatomic) ...Read now
Unlock full access