Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

moonman239

Cancelled
Original poster
Mar 27, 2009
1,541
32
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:
Code:
NSInteger activityNum = indexPath.row + indexPath.section;

    UITableViewCell *cell;

    if ([indexPath row] <= 1) {

        WordTableViewCell *cell = [[WordTableViewCellalloc] init];

    }

    ElementObject *wordFamily = [elementsobjectAtIndex:[indexPath section]];

    return cell;
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.