iOS -UITableView-FDTemplateLayoutCell 的使用
2016-04-26 19:06
519 查看
基本应用
当时要做这个界面的自适应的时候也是费了一些劲,但是用了UITableView+FDTemplateLayoutCell再配合 UIView-FDCollapsibleConstraints一起使用,一些就变得简单了。
UITableView+FDTemplateLayoutCell的github地址:
UIView-FDCollapsibleConstraints的github地址:
详细用法在github上面。
import “UITableView+FDTemplateLayoutCell.h”
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return [tableView fd_heightForCellWithIdentifier:@"reuse identifer" configuration:^(id cell) { // Configure this cell with data, same as what you've done in "-tableView:cellForRowAtIndexPath:" // Like: "-tableView:cellForRowAtIndexPath:"中的一些赋值操作,为了提前获取行高 // cell.entity = self.feedEntities[indexPath.row]; }];
下面是我对UITableView+FDTemplateLayoutCell在项目中的运用效果:
当时要做这个界面的自适应的时候也是费了一些劲,但是用了UITableView+FDTemplateLayoutCell再配合 UIView-FDCollapsibleConstraints一起使用,一些就变得简单了。
UITableView+FDTemplateLayoutCell的github地址:
UIView-FDCollapsibleConstraints的github地址:
详细用法在github上面。
相关文章推荐
- 基于jquery的让textarea自适应高度的插件
- 基于jquery的兼容各种浏览器的iframe自适应高度的脚本
- javascript原生和jquery库实现iframe自适应高度和宽度
- iframe自适应高度的多种方法方法小结
- 兼容多浏览器的iframe自适应高度(ie8 、谷歌浏览器4.0和 firefox3.5.3)
- jquery实现文本框textarea自适应高度
- 使用jQuery不判断浏览器高度解决iframe自适应高度问题
- js 页面高度随浏览器变化
- iOS如何计算字符串的长度
- 关于TableViewCell 自适应(文字自适应)
- 同域iframe的高度自适应
- ios 自适应高度
- 内容自适应 - UILabel & UITableViewCell
- StoryBoard设置Cell中的Label自适应高度
- 解决自动换行,自适应高度。常见与标签样式的 ViewGroup
- iphone开发之UITableViewCell自适应高度
- IOS UITextView自适应高度
- 文本自适应高度(含适配iOS7)
- iframe 自适应高度
- css 页面布局,自适应高度,居中,背景半透明