I find that if you set the table mode in edit mode, after scrolling the table after deleting the row, the cell edit control (red minus sign on the left) is in a random state (rotated vertically or horizontally) on the remaining cells when scrolling the table. Presumably because I'm reusing cells like this:
cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
How to force the edit control to be in the correct state for each cell? It should always be in the horizontal state by default, unless I touch it to remove the cell.
EDIT: Here is the cell code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @"WhateverIdentifier"; MyCell *cell = nil;
source share