You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the protocol methods are very similar to `UITableViewDataSource` and `UITableViewDelegate`, if you know how to use them in `UITableViewController`, then you will find our protocol methods easy to use.
78
+
## CollapsibleTableSectionDelegate Protocols
87
79
88
-
Here is a list of the available protocol methods:
80
+
Most of the protocol methods are optional and they are very similar to `UITableViewDataSource` and `UITableViewDelegate`, here is a list of the available protocol methods:
Tells the delegate that the specified row is now selected.
136
133
134
+
## Examples
135
+
136
+
Run the Examples project in this repo and you will find the following demos that help you get up and running:
137
+
138
+
1. Basic: The minimal working example
139
+
2. Custom Cell: Implement a custom cell programmatically
140
+
3. Collapse By Default: All sections are collapsed by default
141
+
4. Collapse Others: Accordion-style table view that only keeps one section expanded at a time
142
+
143
+
For more details of how to implement collapsible table sections using Swift, please checkout this repo for more information: https://github.com/jeantimex/ios-swift-collapsible-table-section.
144
+
137
145
## Contribution
138
146
139
-
You are welcome to fork and submit pull requests
147
+
Anyone who would like to contribute to the project is more than welcome.
148
+
149
+
* Fork this repo
150
+
* Make your changes
151
+
* Submit pull request
140
152
141
153
## License
142
154
143
-
This project is licensed under the MIT license, Copyright (c) 2017 Yong Su. For more information see `LICENSE.md`.
155
+
MIT License
156
+
157
+
Copyright (c) 2017 Yong Su @jeantimex
158
+
159
+
Permission is hereby granted, free of charge, to any person obtaining a copy
160
+
of this software and associated documentation files (the "Software"), to deal
161
+
in the Software without restriction, including without limitation the rights
162
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
163
+
copies of the Software, and to permit persons to whom the Software is
164
+
furnished to do so, subject to the following conditions:
165
+
166
+
The above copyright notice and this permission notice shall be included in all
167
+
copies or substantial portions of the Software.
144
168
145
-
Author: [Yong Su](https://github.com/jeantimex) @ Box Inc.
169
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
170
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
171
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
172
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
173
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
174
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0 commit comments