Then can you tell me what this code does?
//Tell the table view which class to instantiate whenever it needs to create a new cell
[self.taskTable registerClass:[UITableViewCell class] forCellReuseIdentifier:@"Cell"];
I don’t really understand what the “CLASS” class method does even after reading the developer documentation.
[quote]Returns the class object.
What does returns class object even mean?
Also , I can roughly understand your explanation above but those stuff wasn’t explained in detail in the book. Will it be covered Big Nerd Ranch iOS programming book? Also the protocol stuff really does bugs me also as I have no idea what each protocol does I mean I don’t know What protocol to use and what method to put into the required protocol and what parameter of protocol i can use. I’ll show you an example.
[code]- (UITableViewCell *)tableView:(UITableView *)tableView
// To improve performance, this method first checks
// for an existing cell object that we can reuse
// If there isn’t one, then a new cell is created
UITableViewCell *c = [self.taskTable dequeueReusableCellWithIdentifier:@“Cell”];
// Then we (re)configure the cell based on the model object,
// in this case the tasks array, ...
NSString *item = [self.tasks objectAtIndex:indexPath.row];
c.textLabel.text = item;
// ... and hand the properly configured cell back to the table view
the code is using the indexPath parameter in the method and I have no idea why. Will protocol be covered also in their next book? thanks