Skip to content

Instantly share code, notes, and snippets.

@flexaddicted
Created February 20, 2015 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flexaddicted/0889512659177d112898 to your computer and use it in GitHub Desktop.
Save flexaddicted/0889512659177d112898 to your computer and use it in GitHub Desktop.
func tableView(tableView: UITableView, willBeginEditingRowAtIndexPath indexPath: NSIndexPath) {
self.swipeGestureStarted = true;
}
func tableView(tableView: UITableView, didEndEditingRowAtIndexPath indexPath: NSIndexPath) {
if(self.swipeGestureStarted) {
self.swipeGestureStarted = false
self.tableView.selectRowAtIndexPath(self.selectedIndexPath, animated: true, scrollPosition: .None)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment