Basically, I have a UITableView. It has two prototype cells, each of which belong to a different subclass. In my cellForRowAtIndexPath, when I create a new cell, what I do with it will depend on which subclass the cell is to be an instance of. If it's creating an instance of subclass 1, then I need access to subclass 1's methods. Otherwise, I need access to subclass 2's methods.
Update: I just thought of a strange idea:
Update: I just thought of a strange idea:
Code:
NSInteger activityNum = indexPath.row + indexPath.section;
UITableViewCell *cell;
if ([indexPath row] <= 1) {
WordTableViewCell *cell = [[WordTableViewCellalloc] init];
}
ElementObject *wordFamily = [elementsobjectAtIndex:[indexPath section]];
return cell;