initWithFrame:reuseIdentifier:
来源:互联网 发布:知乎 恐怖提问 编辑:程序博客网 时间:2024/05/17 00:16
initWithFrame:reuseIdentifier:
Initializes and returns a table-view cell object.
- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier
Parameters
- frame
The frame rectangle of the cell. Because the table view automatically positions the cell and makes it the optimal size, you can pass in
CGRectZero
in most cases. However, if you have a custom cell with multiple subviews, each with its own autoresizing mask, you must specify a non-zero frame rectangle; this allows the table view to position the subviews automatically as the cell changes size.- reuseIdentifier
A string used to identify the cell object if it is to be reused for drawing multiple rows of a table view. Pass
nil
if the cell object is not to be reused.
Return Value
An initialized UITableViewCell
object or nil
if the object could not be created.
- initWithFrame:reuseIdentifier:
- 继UITableViewCell 重- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier
- 版本升级之'initWithFrame:reuseIdentifier:' is deprecated
- initWithFrame
- initWithFrame
- initWithFrame
- Custom UITableViewCell reuseIdentifier 问题
- UItableView reuseIdentifier = nil
- iOS TableViewCell ~reuseIdentifier(标识符)
- initWithFrame调用
- init initwithframe
- init initwithframe
- WebView::initWithFrame调用栈
- initWithCoder与initWithFrame
- initWithFrame: 和 initWithCoder: 区别
- initWithFrame 和 initWithCoder
- init: 和 initWithFrame:
- initWithFrame 和 initWithCoder 差别
- Windows中如何获取键盘和鼠标处于空闲状态的时间
- WCF特性及体系结构
- Flash占CPU 优化
- 一段批处理代码
- 微软发布SQL Server JDBC Driver 2.0
- initWithFrame:reuseIdentifier:
- HPUX下定位网卡位置
- 微软的面试题及答案
- 高效时间管理-介绍GTD
- 用RTTI处理程序配置信息
- 关于cout输出字符串指针
- XP系统安装后常规设置
- HPUX 11.23下根盘镜像全过程(上)
- Hook学习资料整理第一节----hook的应用