UITableViewCell注册Cell并重用的方法
2015-11-17 09:35
393 查看
+ (instancetype)mediaInteractCellWithTableView:(UITableView *)tableView{ MyCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier]; if (cell == nil) { [tableView registerNib:[UINib nibWithNibName:kCellIdentifier bundle:nil] forCellReuseIdentifier:kCellIdentifier]; cell = [tableView dequeueReusableCellWithIdentifier:kCellIdentifier]; } return cell; }
相关文章推荐
- Windows下执行gem install 时ERROR: Failed to build gem native extension的解决办法.
- UIPanGestureRecognier的简单使用
- windos下配置 sublime text+quick3.5 开发环境
- LeetCode:Implement Queue using Stacks
- 深入理解dispatch_queue
- easyui 查看隐藏字段的值
- UIAlertController 的使用
- UIAlertController 的使用
- 源码推荐(11.17):UIView添加弹簧效果,购物车的选择判定
- easyui datebox 默认当天日期
- php中include()和require()以及include_once()和require_once()的区别
- Interview Question
- unique-characters
- IOS之UI--小实例项目--添加商品和商品名(纯代码终结版)
- Better Android build
- UIScrollView
- UE4的Cast方法与类型转化
- 微服务,ApiGateway 与 Kong
- IOS UIScrollView
- Universal-Image-Loader(UIL)使用方法&流程图&源码分析 ----- 未完