Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何知道显示的所有按钮?(EditActionsforrowatineXPath)_Ios_Swift_Uitableview - Fatal编程技术网

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