How to enable swipe to delete cell in a TableView?

As Dan has commented above, you need to implement the following table view delegate methods: tableView:canEditRowAtIndexPath: tableView:commitEditingStyle:forRowAtIndexPath: Note: I have tried this in iOS 6 and iOS 7. – (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { // Return YES – we will be able to delete all rows return YES; } – (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath … Read more

How to recognize swipe in all 4 directions

You need to have one UISwipeGestureRecognizer for each direction. It’s a little weird because the UISwipeGestureRecognizer.direction property is an options-style bit mask, but each recognizer can only handle one direction. You can send them all to the same handler if you want, and sort it out there, or send them to different handlers. Here’s one … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)