I’m wondering how to use outlet, dataSource on a UITableView class. I’m stuck because I can’t view any data on the table. Does anyone know how? I’ve looked at other websites, but their tips don’t work. I tried to add the dataSource to the UITableView class, using the interface builder application
I’m wondering how to use outlet, dataSource on a UITableView class. I’m stuck because
Share
The
dataSourceproperty of a UITableView is a delegate what you assign to the tableView… Then the tableView calls that assigned class when it comes to collecting data.. In order to get data to display on the tableView you need to implement the UITableViewDataSource delegate methods…A good place to start would be checking out the UITableView Class Reference:
http://developer.apple.com/library/ios/documentation/uikit/reference/UITableView_Class/Reference/Reference.html – UITableView Class Reference
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableViewDelegate_Protocol/Reference/Reference.html – UITableViewDelegate Protocol Class Reference
http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableViewDataSource_Protocol/Reference/Reference.html – UITableViewDataSource Protocol Class Reference
Also, take a look at this sample code:
http://developer.apple.com/library/ios/ipad/#samplecode/TableViewSuite/Introduction/Intro.html