func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? {
var activate = UITableViewRowAction(style: UITableViewRowActionStyle.Normal, title: "Activate") { (action, indexpath) -> Void in
}
activate.backgroundColor = UIColor.greenColor()
var deactivate = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Deactivate" , handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in
})
return [activate, deactivate]
}
This is currently the code i am using to give me the ability to swipe left and receive a boxes "activate" and "deactivate".
Done some research and a lot of people are saying that UITableViewRowAction, does not have a method that allows you to slide right instead of left. I was wondering if anyone found some work arounds?