I have a UITableView with three Cell Prototypes in the storyboard, I use one cell in the header section, one for the normal table rows and another for the table footer.
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
static NSString *CellIdentifier = @"Header";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
//some personalization
return cell;
}
My problem is whenever i enter in the edit mode of the tableview the header and footer are moving to the left, like the cell that is current editing.
- (void) setEditing:(BOOL)editing animated:(BOOL)animated {
[super setEditing:editing animated:animated];
[self.tableView setEditing:editing animated:animated];
}
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{
return YES;
}
In edit mode:
Any solution or hints? Neither the last XCode update fixed it.
Thank you