{"id":21413905,"url":"https://github.com/liufengting/ftfoldingtableview","last_synced_at":"2025-07-14T03:31:40.473Z","repository":{"id":56910814,"uuid":"61602060","full_name":"liufengting/FTFoldingTableView","owner":"liufengting","description":"FTFoldingTableView. Folding cells with simple delegates, and change UI looks in a few lines.","archived":false,"fork":false,"pushed_at":"2019-03-09T06:53:46.000Z","size":395,"stargazers_count":130,"open_issues_count":5,"forks_count":26,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-15T17:50:07.672Z","etag":null,"topics":["foldingcell"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liufengting.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-21T04:24:34.000Z","updated_at":"2023-03-05T01:16:10.000Z","dependencies_parsed_at":"2022-08-20T19:50:34.626Z","dependency_job_id":null,"html_url":"https://github.com/liufengting/FTFoldingTableView","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufengting%2FFTFoldingTableView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufengting%2FFTFoldingTableView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufengting%2FFTFoldingTableView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liufengting%2FFTFoldingTableView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liufengting","download_url":"https://codeload.github.com/liufengting/FTFoldingTableView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225943540,"owners_count":17549226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["foldingcell"],"created_at":"2024-11-22T18:21:02.966Z","updated_at":"2024-11-22T18:21:03.757Z","avatar_url":"https://github.com/liufengting.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FTFoldingTableView\n\n[![Twitter](https://img.shields.io/badge/twitter-@liufengting-blue.svg?style=flat)](http://twitter.com/liufengting) \n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/liufengting/FTFoldingTableView/master/LICENSE)\n[![Version](https://img.shields.io/cocoapods/v/FTFoldingTableView.svg?style=flat)](http://cocoapods.org/pods/FTFoldingTableView)\n[![Platform](https://img.shields.io/cocoapods/p/FTFoldingTableView.svg?style=flat)](http://cocoapods.org/pods/FTFoldingTableView)\n[![CocoaPods](https://img.shields.io/cocoapods/dt/FTFoldingTableView.svg?maxAge=2592000)](http://cocoapods.org/pods/FTFoldingTableView)\n[![CI Status](http://img.shields.io/travis/liufengting/FTFoldingTableView.svg?style=flat)](https://travis-ci.org/liufengting/FTFoldingTableView)\n[![GitHub stars](https://img.shields.io/github/stars/liufengting/FTFoldingTableView.svg)](https://github.com/liufengting/FTFoldingTableView/stargazers)\n\nFTFoldingTableView. Folding cells with simple delegates, and change UI looks in a few lines of code.\n\n\n# ScreenShots\n\n| Style\t| Left\t| Right\t|\n|:-------------|:-------------:|:-------------:|\n| fold | \u003cimg src=\"/Screenshots/Screenshots1.png\" width=\"320\"/\u003e | \u003cimg src=\"/Screenshots/Screenshots3.png\" width=\"320\"/\u003e |\n| show | \u003cimg src=\"/Screenshots/Screenshots2.png\" width=\"320\"/\u003e | \u003cimg src=\"/Screenshots/Screenshots4.png\" width=\"320\"/\u003e |\n\n# Usage\n\n## Required Methods\n\n* preferred ArrowPosition\n\n```objective-c\n- (FTFoldingSectionHeaderArrowPosition)perferedArrowPositionForFTFoldingTableView:(FTFoldingTableView *)ftTableView\n{\n    return self.arrowPosition;\n}\n```\n* numberOfSectionForFTFoldingTableView\n\n```objective-c\n- (NSInteger )numberOfSectionForFTFoldingTableView:(FTFoldingTableView *)ftTableView\n{\n    return 5;\n}\n\n```\n* numberOfRowsInSection\n\n```objective-c\n- (NSInteger )ftFoldingTableView:(FTFoldingTableView *)ftTableView numberOfRowsInSection:(NSInteger )section\n{\n    return 3;\n}\n```\n* heightForHeaderInSection\n\n```objective-c\n- (CGFloat )ftFoldingTableView:(FTFoldingTableView *)ftTableView heightForHeaderInSection:(NSInteger )section\n{\n    return 60;\n}\n```\n* heightForRowAtIndexPath\n\n```objective-c\n- (CGFloat )ftFoldingTableView:(FTFoldingTableView *)ftTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath\n{\n    return 50;\n}\n```\n* titleForHeaderInSection\n\n```objective-c\n- (NSString *)ftFoldingTableView:(FTFoldingTableView *)ftTableView titleForHeaderInSection:(NSInteger)section\n{\n    return [NSString stringWithFormat:@\"Section %ld\",section];\n}\n```\n* cellForRowAtIndexPath\n\n```objective-c\n- (UITableViewCell *)ftFoldingTableView:(FTFoldingTableView *)ftTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath\n{\n    UITableViewCell *cell = [ft_tableView dequeueReusableCellWithIdentifier:DemoTableViewIdentifier forIndexPath:indexPath];\n    \n    \n    return cell;\n}\n```\n* didSelectRowAtIndexPath\n\n```objective-c\n- (void )ftFoldingTableView:(FTFoldingTableView *)ftTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath\n{\n    [ftTableView deselectRowAtIndexPath:indexPath animated:YES];\n    \n    \n}\n```\n## Optional Methods\n\n* descriptionForHeaderInSection\n\n```objective-c\n- (NSString *)ftFoldingTableView:(FTFoldingTableView *)ftTableView descriptionForHeaderInSection:(NSInteger )section\n{\n    return @\"description\";\n}\n```\n* arrowImageForSection\n\n```objective-c\n- (UIImage *)ftFoldingTableView:(FTFoldingTableView *)ftTableView arrowImageForSection:(NSInteger )section\n{\n    return [UIImage imageNamed:@\"Arrowhead\"];\n}\n```\n* backgroundColorForHeaderInSection\n\n```objective-c\n- (UIColor *)ftFoldingTableView:(FTFoldingTableView *)ftTableView backgroundColorForHeaderInSection:(NSInteger )section\n{\n    return [UIColor grayColor];\n}\n```\n* fontForTitleInSection\n\n```objective-c\n- (UIFont *)ftFoldingTableView:(FTFoldingTableView *)ftTableView fontForTitleInSection:(NSInteger )section\n{\n    return [UIFont boldSystemFontOfSize:16];\n}\n```\n* fontForDescriptionInSection\n\n```objective-c\n- (UIFont *)ftFoldingTableView:(FTFoldingTableView *)ftTableView fontForDescriptionInSection:(NSInteger )section\n{\n    return [UIFont systemFontOfSize:13];\n}\n```\n* textColorForTitleInSection\n\n```objective-c\n- (UIColor *)ftFoldingTableView:(FTFoldingTableView *)ftTableView textColorForTitleInSection:(NSInteger )section\n{\n    return [UIColor whiteColor];\n}\n```\n* textColorForDescriptionInSection\n\n```objective-c\n- (UIColor *)ftFoldingTableView:(FTFoldingTableView *)ftTableView textColorForDescriptionInSection:(NSInteger )section\n{\n    return [UIColor whiteColor];\n}\n```\n\n# Installation\n\n## Manually\n\n* clone this repo.\n* Simply drop the '/FTFoldingTableViewLib' folder into your project.\n* Enjoy!\n\n## Cocoapods\n\nFTFoldingTableView is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\npod 'FTFoldingTableView'\n```\n\n\n\n# Need to know\n\n* I used two days to finish this project, and then uploaded it to Cocoapods, so I didn't have enough time to test it;if you have any questions, please let me know. I'll fill this README in the near future.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliufengting%2Fftfoldingtableview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliufengting%2Fftfoldingtableview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliufengting%2Fftfoldingtableview/lists"}