rondinellimorais / expandabletableview Goto Github PK
View Code? Open in Web Editor NEWUIExpandableTableView
UIExpandableTableView
hi, great job :)
How can I put the rows with 2 lines.
How do I remove the color of the rows.
Please ;-)
Will you be providing support for Swift 4?
It currently closes the other sections upon opening a new section, which doesn't allow for proper animations for UITableViewRowAnimations like .top, .bottom, .none. It only works well for .automatic, .fade, and .middle. I can provide an example if you would like.
Hello, it is possible resolve the problem from Swift 3, now C-style for statement has been removed in Swift 3.
This lines of code:
for var i = 0; i < numberOfRows; i += 1 {
indexesPathToInsert.append(IndexPath(row: i, section: section))
}
And
for var i = 0 ; i < numberOfRows; i += 1 {
indexesPathToDelete.append(IndexPath(row: i, section: section))
}
Thank you
my table gets reload after every 10 sec, and then if I tap on a section, app gets crashes with the error that before update no of rows in a section were different
hi, thanks for sharing this lib!
i just wanna ask, is it possible to customize header? lets say i wanna add some view / button in the header.
thanks
If only one section is need to show meanwhile section not expend
How can I change the text in thelabel that I add to the the header view when a row in the table for that section is selected.
I tried the following. Here is my code
(UIView *)tableView:(UITableView *)myTableView viewForHeaderInSection:(NSInteger)section {
NSLog(@"viewForHeaderInSection");
HeaderView *headerView = [[HeaderView alloc] initWithTableView:tableView section:section];
headerView.backgroundColor = [UIColor groupTableViewBackgroundColor];
UILabel *label = [[UILabel alloc] init];
label.frame = headerView.frame;
label.tag = 101;
[label setFrame:CGRectMake(headerView.frame.origin.x+10, headerView.frame.origin.y, headerView.frame.size.width-10, headerView.frame.size.height-1)];
label.font = [UIFont systemFontOfSize:15.0f];
label.text = [tableSections objectAtIndex:section];
label.textColor = [UIColor blackColor];
[headerView addSubview:label];
CGRect sepFrame = CGRectMake(0, headerView.frame.size.height-1, 320, 1);
UIView *seperatorView =[[UIView alloc] initWithFrame:sepFrame]; seperatorView.backgroundColor = [UIColor colorWithWhite:224.0/255.0 alpha:1.0];
[headerView addSubview:seperatorView];
return headerView;
}
(void)tableView:(UITableView *)myTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
changeSectionHeader = TRUE;
selectedVenue = self.nearbyVenues[indexPath.row];
NSLog(@"selected venue %@ - %@",[selectedVenue title], selectedVenue.category);
UIView *headerView = [self tableView:self.tableView viewForHeaderInSection:whereSection];
UILabel *label = (UILabel *)[headerView viewWithTag:101];
label.text = selectedVenue.title;
[myTableView deselectRowAtIndexPath:indexPath animated:TRUE];
}
How do I access the label in the header view to change it's value?
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.