|
1
|
# JomloTableView |
|
2
|
|
|
3
|
[](https://travis-ci.org/setoelkahfi/JomloTableView) |
|
4
|
[](http://cocoapods.org/pods/JomloTableView) |
|
5
|
[](http://cocoapods.org/pods/JomloTableView) |
|
6
|
[](http://cocoapods.org/pods/JomloTableView) |
|
7
|
|
|
8
|
## Example |
|
9
|
|
|
10
|
To run the example project, clone the repo, and run `pod install` from the Example directory first. |
|
11
|
|
|
12
|
## Requirements |
|
13
|
|
|
14
|
iOS 8 |
|
15
|
|
|
16
|
## Installation |
|
17
|
|
|
18
|
JomloTableView is available through [CocoaPods](http://cocoapods.org). To install |
|
19
|
it, simply add the following line to your Podfile: |
|
20
|
|
|
21
|
```ruby |
|
22
|
pod "JomloTableView" |
|
23
|
``` |
|
24
|
|
|
25
|
## Usage |
|
26
|
|
|
27
|
```swift |
|
28
|
import UIKit |
|
29
|
import JomloTableView |
|
30
|
|
|
31
|
class ViewController: UIViewController { |
|
32
|
|
|
33
|
@IBOutlet var jomloTableView: JomloTableView! |
|
34
|
|
|
35
|
var exampleSection = JomloTableViewSection() |
|
36
|
|
|
37
|
override func viewDidLoad() { |
|
38
|
super.viewDidLoad() |
|
39
|
// Do any additional setup after loading the view, typically from a nib. |
|
40
|
|
|
41
|
let row = SimpleRow() |
|
42
|
|
|
43
|
exampleSection.addRow(row: row) |
|
44
|
exampleSection.addRow(row: row) |
|
45
|
exampleSection.addRow(row: row) |
|
46
|
exampleSection.addRow(row: row) |
|
47
|
exampleSection.addRow(row: row) |
|
48
|
exampleSection.addRow(row: row) |
|
49
|
exampleSection.addRow(row: row) |
|
50
|
exampleSection.addRow(row: row) |
|
51
|
exampleSection.addRow(row: row) |
|
52
|
|
|
53
|
jomloTableView.addSection(section: exampleSection) |
|
54
|
jomloTableView.reloadData() |
|
55
|
|
|
56
|
} |
|
57
|
|
|
58
|
override func didReceiveMemoryWarning() { |
|
59
|
super.didReceiveMemoryWarning() |
|
60
|
// Dispose of any resources that can be recreated. |
|
61
|
} |
|
62
|
|
|
63
|
} |
|
64
|
``` |
|
65
|
|
|
66
|
## Author |
|
67
|
|
|
68
|
setoelkahfi, setoelkahfi@gmail.com |
|
69
|
|
|
70
|
## License |
|
71
|
|
|
72
|
JomloTableView is available under the MIT license. See the LICENSE file for more info. |