Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honghaoz/rrncollapsablesectiontableviewswift
Collapsable table view sections with custom section header views.
https://github.com/honghaoz/rrncollapsablesectiontableviewswift
Last synced: 11 days ago
JSON representation
Collapsable table view sections with custom section header views.
- Host: GitHub
- URL: https://github.com/honghaoz/rrncollapsablesectiontableviewswift
- Owner: honghaoz
- License: mit
- Created: 2015-09-25T14:24:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-22T17:51:03.000Z (about 9 years ago)
- Last Synced: 2023-10-20T20:14:25.569Z (about 1 year ago)
- Language: Swift
- Size: 354 KB
- Stars: 12
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![](http://i.imgur.com/jDq37Ip.gif?1)
![](http://i.imgur.com/77YQhPE.gif?1)## Requirements
XCode 7.0+, iOS 8.1+## Installation
In XCode, select 'Add Files To Project', and select the following
* RRNCollapsableSectionProtocols.swift
* RRNCollapsableTableScene.swift## Usage
1. Build a UITableView, either in code or from interface builder.
2. Subclass UITableViewHeaderFooterView and conform to the RRNCollapsableSectionHeader Protocol. Create a nib for this subclass.
3. Subclass RRNCollapsableTableViewController and do the following inside your subclass:
* override 'collapsableTableView' and return your table view
* override 'model' and return a pointer to an array of objects, which conform to RRNCollapsableSectionItem Protocol.
* override 'sectionHeaderNibName' and return the filename of the nib you created in step 2.See the 'Example-Swift' project for a demonstration.
## License
RRNCollapsableSectionTableViewSwift is released under the MIT license. See 'LICENSE' for details.