jeantimex / collapsibletablesectionviewcontroller Goto Github PK
View Code? Open in Web Editor NEW:tada: Swift library to support collapsible sections in a table view.
License: MIT License
:tada: Swift library to support collapsible sections in a table view.
License: MIT License
Hi,
When I pod install I get the message '[!] Unable to find a specification for CollapsibleTableSectionViewController
'
Thanks
At the moment, the section header looks like this:
it will be really nice if we can allow user to specify their own view/design.
I guess what we can do is to bubble up the func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
protocol method to the user, and then wrap the UIView that is provided by the user and hook up the tag gesture which triggers the collapse action. And that will make this pod even better.
CollapsibleTableViewHeader.swift:52:75: Argument of '#selector' refers to instance method 'tapHeader' that is not exposed to Objective-C
At the moment, the section header looks like this:
it will be really nice if we can allow user to specify their own view/design.
I guess what we can do is to bubble up the func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
protocol method to the user, and then wrap the UIView that is provided by the user and hook up the tag gesture which triggers the collapse action. And that will make this pod even better.
Does this library allow for some sections to be collapsible and others don't? Or do all sections need to be collapsible?
Is it possible to tap section header programmatically?
Thanks
Hi, I have successfully display the sections and child cells correctly based on your example. But when I tap on the section header the cell is not expand or collapse, I follow all the guide on the example but I still failed, any idea what I miss out or what? Thanks
I have the content for the CollapsibleTableSectionViewController coming from an API and i have tried using several methods like the following:
DispatchQueue.main.async{
self.tableView.reloadData()
self.tableView.reloadSectionIndexTitles()
self.tableView.reloadSections(NSIndexSet(index: 1) as IndexSet, with: .automatic)
}
None of these methods calls the CollapsibleTableSectionDelegate methods to reload everything so how can i reload everything?
can i have different background for tableview in each section
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.