У меня есть UITableView, и я добавил к нему действия редактирования. Теперь я хочу добавить изображение над меткой кнопок delete, как:
Это мой код:
func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? {
let blockAction = UITableViewRowAction(style: .Normal, title: "Block") { (rowAction:UITableViewRowAction, indexPath:NSIndexPath) -> Void in
//TODO: Delete the row at indexPath here
}
blockAction.backgroundColor = UIColor.redColor()
return [blockAction]
}
Как добавить изображение на кнопку Delete
?