Ios 如何知道显示的所有按钮?(EditActionsforrowatineXPath)
我有这个代码,我需要调用一个函数时,所有按钮显示。 如何判断显示编辑操作的动画何时完成?” 我的代码有两个按钮,这是代码:Ios 如何知道显示的所有按钮?(EditActionsforrowatineXPath),ios,swift,uitableview,Ios,Swift,Uitableview,我有这个代码,我需要调用一个函数时,所有按钮显示。 如何判断显示编辑操作的动画何时完成?” 我的代码有两个按钮,这是代码: func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? { let confirm = UITableViewRowAction(style: .Normal, title: "Confirm") {
func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? {
let confirm = UITableViewRowAction(style: .Normal, title: "Confirm") { action, index in
//CODE
}
confirm.backgroundColor = UIColor.greenColor()
let delete = UITableViewRowAction(style: .Normal, title: "Delete") { action, index in
//code
}
delete.backgroundColor = UIColor.redColor()
return [delete,confirm]
}
func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
// the cells you would like the actions to appear needs to be editable
return true
}
func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
// you need to implement this method too or you can't swipe to display the actions
}
具体点。在用户离开单元格后,一旦表格视图显示编辑操作按钮,您需要做什么?您好。我如何判断显示编辑操作的动画何时完成?“重复您在问题中已经说明的内容并不是更具体。我们已经知道您希望知道动画何时完成。我问你动画完成后需要做什么。为什么需要知道动画何时完成?动画完成后,我需要更改UIImageView