Skip to content

Instantly share code, notes, and snippets.

@soggybag
Created November 13, 2015 06:14
Show Gist options
  • Save soggybag/f8d82e005b5b8110c6c7 to your computer and use it in GitHub Desktop.
Save soggybag/f8d82e005b5b8110c6c7 to your computer and use it in GitHub Desktop.
Table View Row action with unicode icon
// http://apps.timwhitlock.info/emoji/tables/unicode
let delete = UITableViewRowAction(style: .Destructive, title: "\u{267A}\n Delete") { (action: UITableViewRowAction, indexPath: NSIndexPath) -> Void in
self.deleteRowAtIndexPath(indexPath)
tableView.editing = false
}
delete.backgroundColor = UIColor.redColor()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment