Proyectos
Ver en GitHub
OliverLetterer/SLExpandableTableView
OliverLetterer/SLExpandableTableView has 642 GitHub stars and 119 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 01:52 UTC. Last push 2016-07-20.
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- Recopilando historial
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
Acerca de
SLExpandableTableView is a UITableView subclass that gives you easy access to expandable and collapsable sections by just implementing a few more delegate and dataSource protocols. (iPhone, iPad, iOS)
Herramientas de desarrolloREADME.md
OriginalSLExpandableTableView
SLExpandableTableView is a UITableView subclass that gives you easy access to expandable and collapsable sections by just implementing a few more delegate and dataSource protocols.
How to use SLExpandableTableView
- Installation
pod 'SLExpandableTableView'
- Load the SLExpandableTableView in a UITableViewController
- (void)loadView
{
self.tableView = [[SLExpandableTableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
}
- Implement the SLExpandableTableViewDatasource protocol
- (BOOL)tableView:(SLExpandableTableView *)tableView canExpandSection:(NSInteger)section
{
// return YES, if the section should be expandable
}
- (BOOL)tableView:(SLExpandableTableView *)tableView needsToDownloadDataForExpandableSection:(NSInteger)section
{
// return YES, if you need to download data to expand this section. tableView will call tableView:downloadDataForExpandableSection: for this section
}
- (UITableViewCell<UIExpandingTableViewCell> *)tableView:(SLExpandableTableView *)tableView expandingCellForSection:(NSInteger)section
{
// this cell will be displayed at IndexPath with section: section and row 0
}
- Implement the SLExpandableTableViewDelegate protocol
- (void)tableView:(SLExpandableTableView *)tableView downloadDataForExpandableSection:(NSInteger)section
{
// download your data here
// call [tableView expandSection:section animated:YES]; if download was successful
// call [tableView cancelDownloadInSection:section]; if your download was NOT successful
}
- (void)tableView:(SLExpandableTableView *)tableView didExpandSection:(NSUInteger)section animated:(BOOL)animated
{
//...
}
- (void)tableView:(SLExpandableTableView *)tableView didCollapseSection:(NSUInteger)section animated:(BOOL)animated
{
//...
}
Sample Screenshots