update readme

This commit is contained in:
Max Sokolov 2016-06-13 16:21:16 +03:00
parent 8b5ad2fcd1
commit 1ed3db1cb1
2 changed files with 9 additions and 1 deletions

View File

@ -41,6 +41,10 @@ class MainController: UIViewController {
row1
.addAction(TableRowAction(.shouldHighlight) { (data) -> Bool in
data.cell
data.item
data.path
print("1")
return false

View File

@ -64,6 +64,10 @@ It nice to have some actions that related to your cells:
```swift
let action = TableRowAction<String, StringTableViewCell>(.click) { (data) in
// you could access any useful information that relates to the action
// data.cell - StringTableViewCell?
// data.item - String
// data.path - NSIndexPath
}
let row = TableRow<String, StringTableViewCell>(item: "some", actions: [action])
@ -113,7 +117,7 @@ use_frameworks!
pod 'TableKit'
```
#### Carthage
Add the line `github "maxsokolov/tablekit"` to your `Cartfile`
Add the line `github "maxsokolov/tablekit"` to your `Cartfile`.
#### Manual
Clone the repo and drag files from `Sources` folder into your Xcode project.