I have a UITableView. I added a UIGestureRecognizer to this table, which searches for scrolling through the cell and allows you to edit this table if it detects wipes. When I scroll to the right, it really allows editing on the table. However, when I scroll left, I get a red default delete button, displayed on the right side of the cell. How can I disable this default behavior and make it so that if I swipe left or right, I get editing anyway?
- (void)handleSwipeFrom:(UISwipeGestureRecognizer *)recognizer {
foldersTable.editing=YES;
}
- (void)viewDidLoad
{
[super viewDidLoad];
UIGestureRecognizer *recognizer;
recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFrom:)];
[foldersTable addGestureRecognizer:recognizer];
[recognizer release];
}
source
share