This is probably a dumb question but I’m just learning. If I have a method that creates a UITableView in code when a button is pressed like this
UITableViewcontroller *contentView = [[UITableViewController alloc] initWithSytyle:UITableViewStylePlain];
contentView.tableView.delegate = self;
contentView.tableView.datasource = self;
[contentView release];
In the UITableView delegate and datasource methods, how do I check if it is this tableView or another TableView? Do I have to have to have an instance variable for this tableView that always points to it for those delegate and datasource methods? Thanks.
You can use tag property. In your code
then in your delegate method or datasource methods check