Swift editActionsForRowAtIndexPath

Ich versuche, fügen Sie einige Aktionen Bearbeiten, die in meinem tableview. Aber ich kann nicht herausfinden, was für UITableViewRowAction!. Es ist dargestellt in der code-als IDK.

func Done(UITableViewRowAction!,
    NSIndexPath!) -> Void {

}

override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? {

    let complete = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Done", handler: Done(_IDK_, indexPath))

    let arrayofactions: Array = [complete]

    return arrayofactions
}
Schreibe einen Kommentar