TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2015 |
Maintained by Sam Meech-Ward.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Check out the documentation for a comprehensive look at SMWAccordion.
SMWAccordion is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SMWAccordion"
Sam Meech-Ward, [email protected]
SMWAccordion is available under the MIT license. See the LICENSE file for more info.
Import the SMWAccordion header
Setup a SMWAccordionTableView exactly the same way that you would set up a UITableView.
Instead of using the UITableView protocols, use the SMWAccordionTableView protocols
Implement the folowing datasource protocol method
Use this method to return the content view that you want to be shown by the accordion. This view has to be shorter than the accordion view itself otherwise the accordion will close strait after opening. It is a good idea to keep the content view no taller than half the size of the accordion view. If it is necessary to display a view that is taller, return a scrollview with the content inside it.
Optional delegate methods: