I wanted to have a custom delete button and tried doing this inside my cellForRowAtIndexPath, however it is still showing the old delete button, why is this?
Code:
UIButton * delete = [UIButton buttonWithType:UIButtonTypeCustom];
[delete setFrame: CGRectMake(260, 20, 33, 33)];
[delete setBackgroundColor:[UIColor clearColor]];
[delete setBackgroundImage:[UIImage imageNamed:@"DeleteIcon.jpg"] forState:UIControlStateNormal];
cell.editingAccessoryView = delete;