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

jaycyn94

macrumors newbie
Original poster
Jul 18, 2007
17
0
I have a UITableViewController, and I have added the UITableViewCellAccessoryDisclosureIndicator on the Cell Views. What I have noticed is that when I delete a row from the table, then one of the other rows loses the indicator. When I scroll the view, the missing indicator moves to another row. I'm guessing that I'm loosing a pointer to the indicator or something, but I'm not sure how it is happening.

Here is most of my code from the UITableViewCell:

Code:
- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) {
                ... Setting up other parts of cell
        
          self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
     }
     
    return self;
}

And here is the code that deletes the row:

Code:
 [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];

Any idea's what is happening?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.