UITableViewRowAction switch left

Is it possible to change the UITableViewRowAction to a left napkin and not a standard one? here is my code:

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


    var shareAction = UITableViewRowAction(style: .Normal, title: "Share") { (action, indexPath) -> Void in
        tableView.editing = false
        println("shareAction")
    }
    shareAction.backgroundColor = UIColor.grayColor()

    var doneAction = UITableViewRowAction(style: .Default, title: "Done") { (action, indexPath) -> Void in
        tableView.editing = false
        println("readAction")
    }
    doneAction.backgroundColor = UIColor.greenColor()


    return [doneAction, shareAction]
}

      

+3
ios objective-c iphone swift uitableviewrowaction


source to share


No one has answered this question yet

Check out similar questions:

61
How to detect a cell of a tableView being touched or clicked in swift
21
Expand and collapse table cells
3
UITableView reloadData doesn't work when viewcontroller is loaded a second time
2
UITableViewCell doesn't respect shouldIndentWhileEditing = NO?
2
remove the delete button ⛔️ on table rows in edit mode
2
TableView does not display text with JSON data from API call
0
How to update cell values ​​of UITableView (cell.detailTextLabel.text) after view is loaded once with default cell values
0
list of all control methods - as required - iPhone
0
Refresh or reload UITableView after delete action completes in detail view
0
Fixed checkboxes when scrolling UITableView



All Articles
Loading...
X
Show
Funny
Dev
Pics