Created
November 13, 2015 06:14
-
-
Save soggybag/f8d82e005b5b8110c6c7 to your computer and use it in GitHub Desktop.
Table View Row action with unicode icon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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