Version 0.1.0
Seto Elkahfi committed
Mar 28, 2017 at 19:45 UTC
b9a6514682f7be12c6a00f7dc327333101ec9b63
2 files changed
+45
-2
JomloTableView.podspec
+2
-2
@@ -9,7 +9,7 @@
9
Pod::Spec.new do |s|
10
s.name = 'JomloTableView'
11
s.version = '0.1.0'
12
- s.summary = 'A short description of JomloTableView.'
12
+ s.summary = 'A UITableView with detachable section and row.'
13
14
# This description is used to generate tags and improve search results.
15
# * Think: What does it do? Why did you write it? What is the focus?
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
18
# * Finally, don't worry about the indent, CocoaPods strips it!
19
20
s.description = <<-DESC
21
-TODO: Add long description of the pod here.
21
+JomloTableView uses detachable section and row. You can add multiple section individually and add rows to each section. See example project for how to use this library.
22
DESC
23
24
s.homepage = 'https://github.com/setoelkahfi/JomloTableView'
README.md
+43
@@ -11,6 +11,8 @@ To run the example project, clone the repo, and run `pod install` from the Examp
11
12
## Requirements
13
14
+iOS 8
15
+
16
## Installation
17
18
JomloTableView is available through [CocoaPods](http://cocoapods.org). To install
@@ -20,6 +22,47 @@ it, simply add the following line to your Podfile:
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