I have a UIViewController that has a UITableView sitting on a UIView that is hidden. I have created a data view object and implmented the data methods and hooked it up in the Interfaced builder as a datasource. I can get the table to show but not populate. I have tried creating a UITableViewControler and adding that the the UIViewController and that did not work. What am I missing?
A:
If your connections are good, maybe the tableview loads before the data is there. Try
[tableview reloadData];
If that doesn't work, you have bad connections. You can always set the delegate and datasource outside IB.
[tableView setDelegate:uitableviewdelegate]
[tableView setDataSource:uitableviewdatasource]
DexterW
2010-08-23 16:24:32