shunFSKi / Fsautoadjust Cellheightdemo
Licence: mit
cell行高自适应,一句代码搞定需求,丝滑般顺畅的滚动体验
Stars: ✭ 73
Labels
Projects that are alternatives of or similar to Fsautoadjust Cellheightdemo
vue-datagrid
Spreadsheet data grid component. Handles enormous data processing.
Stars: ✭ 171 (+134.25%)
Mutual labels: cell
Mspeekcollectionviewdelegateimplementation
A custom paging behavior that peeks the previous and next items in a collection view
Stars: ✭ 265 (+263.01%)
Mutual labels: cell
Ynexpandablecell
✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 4
Stars: ✭ 445 (+509.59%)
Mutual labels: cell
Multiple-collectionView-in-Multiple-tableView-cells
UICollectionView is embed in UITableViewCell. The collection views are horizontal scrollable. The UITableView can have a section title for each UICollectionView and the number of UICollectionView is equal to the number of sections.
Stars: ✭ 23 (-68.49%)
Mutual labels: cell
React Native Cell Components
Awesome react-native cell components! From a Cell to more complex & awesome components.
Stars: ✭ 177 (+142.47%)
Mutual labels: cell
Wrcellview
自定义View,类似tableView的系统cell,使用方便 Custom View, similar to the tableView system cell, easy to use
Stars: ✭ 64 (-12.33%)
Mutual labels: cell
tcscustomrowactionfactory
TCSTableViewRowActionFactory allows you to setup the swipe actions for cells in a table view using UIView and some other convenient methods
Stars: ✭ 24 (-67.12%)
Mutual labels: cell
Uitableviewdynamiclayoutcacheheight
🖖高性能的自动计算采用 Autolayout 布局的 UITableViewCell 和 UITableViewHeaderFooterView 的高度,内部自动管理高度缓存。
Stars: ✭ 360 (+393.15%)
Mutual labels: cell
qcell
Statically-checked alternatives to RefCell and RwLock
Stars: ✭ 265 (+263.01%)
Mutual labels: cell
ACViewer
Viewer / Utility for DAT files for the game Asheron's Call
Stars: ✭ 19 (-73.97%)
Mutual labels: cell
Expandablecell
✨ Awesome expandable, collapsible tableview cell for iOS written in Swift 5
Stars: ✭ 559 (+665.75%)
Mutual labels: cell
Expandabletable
AZExpandable is a lightweight proxy for UITableView to expand cells.
Stars: ✭ 218 (+198.63%)
Mutual labels: cell
Paging Collection View Layout
custom collection view layout that allows you to page by cell, not screen
Stars: ✭ 65 (-10.96%)
Mutual labels: cell
Oycountdownmanager
在cell中使用倒计时的处理方法, 全局使用一个NSTimer对象, 支持单列表.多列表.多页面.分页列表使用
Stars: ✭ 317 (+334.25%)
Mutual labels: cell
FSAutoAdjust-cellHeightDemo
cell行高自适应,一句代码搞定需求,丝滑般顺畅的滚动体验
API
支持两种缓存方式
/**
cell自动计算行高
@param tableView tableView
@param indexPath indexPath
@param contentViewWidth cell内容宽度,不确定可传0
@return cell高度
*/
+ (CGFloat)FSCellHeightForTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath cellContentViewWidth:(CGFloat)contentViewWidth bottomOffset:(CGFloat)bottomOffset;
/**
cell自动计算行高优化版
@param tableView tableView
@param indexPath indexPath
@param cacheKey 当前cell唯一标识符
@param contentViewWidth cell内容宽度,不确定可传0
@return cell高度
*/
+ (CGFloat)FSCellHeightForTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath cacheKey:(NSString *)cacheKey cellContentViewWidth:(CGFloat)contentViewWidth bottomOffset:(CGFloat)bottomOffset;
How To Use
1、将demo中的FSAutoAdjust-cellHeightLib
拖入项目中导入#import "UITableViewCell+FSAutoCountHeight.h"
;
2、cocoapods:pod search FSAutoAdjust-cellHeight
如果找不到执行pod setup
后 pod 'FSAutoAdjust-cellHeight'
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
FSEntity *entity = _datas[indexPath.row];
CGFloat height = [self.title isEqualToString:@"keyCache"]?[FSTestTableViewCell FSCellHeightForTableView:tableView indexPath:indexPath cacheKey:entity.identifier cellContentViewWidth:0 bottomOffset:0]:[FSTestTableViewCell FSCellHeightForTableView:tableView indexPath:indexPath cellContentViewWidth:0 bottomOffset:0];
return height;
}
详细请下载demo查看
Document
文档正在努力编写中。。。
文章地址:http://www.jianshu.com/p/16a67c58c8c4
Version
1.0.2 ——>添加cocoapods支持 2017.8.7
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].