我有一个自定义的UITableViewRowAction设置和工作.我唯一无法解决的问题是,一旦 Select 了某个操作,如何取消UITableViewRowAction.我肯定我错过了一些非常明显的东西.以下是我当前的设置:
func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? {
var moreRowAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "In", handler:{action, indexpath in
//Some code to execute here
});
moreRowAction.backgroundColor = UIColor(red: 0.298, green: 0.851, blue: 0.3922, alpha: 1.0)
return [moreRowAction];
}
谢谢你的建议.