update readme
This commit is contained in:
parent
721596131b
commit
9bf4e72f86
20
README.md
20
README.md
|
|
@ -92,13 +92,31 @@ let builder = TableRowBuilder<String, StringTableViewCell> {
|
|||
|
||||
section.append(builder: builder)
|
||||
```
|
||||
Or if you don't need to do some additional setup for your data, just use standart init:
|
||||
Or if you don't need an additional setup for your data, just use standart init:
|
||||
```swift
|
||||
let builder = TableRowBuilder<String, StringTableViewCell>(items: ["1", "2", "3"], actions: [actions])
|
||||
|
||||
section.append(builder: builder)
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
### CocoaPods
|
||||
To integrate TableKit into your Xcode project using CocoaPods, specify it in your `Podfile`:
|
||||
|
||||
```ruby
|
||||
source 'https://github.com/CocoaPods/Specs.git'
|
||||
platform :ios, '8.0'
|
||||
use_frameworks!
|
||||
|
||||
pod 'TableKit'
|
||||
```
|
||||
|
||||
## Requirements
|
||||
|
||||
- iOS 8.0+
|
||||
- Xcode 7.0+
|
||||
|
||||
## License
|
||||
|
||||
TableKit is available under the MIT license. See LICENSE for details.
|
||||
|
|
@ -20,10 +20,6 @@
|
|||
|
||||
import UIKit
|
||||
|
||||
/**
|
||||
Responsible for building a certain table view section.
|
||||
Can host several row builders.
|
||||
*/
|
||||
public class TableSection {
|
||||
|
||||
weak var tableDirector: TableDirector?
|
||||
|
|
@ -36,7 +32,6 @@ public class TableSection {
|
|||
public private(set) var headerView: UIView?
|
||||
public private(set) var footerView: UIView?
|
||||
|
||||
/// A total number of rows in section of each row builder.
|
||||
public var numberOfRows: Int {
|
||||
return items.count
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue