美文网首页
UITableViewCell 每次复用都会走近的方法

UITableViewCell 每次复用都会走近的方法

作者: 代码干货 | 来源:发表于2015-06-28 13:56 被阅读79次

From the apple docs
dequeueReusableCellWithIdentifier:
<pre>
If you registered a class for the specified identifier and a new cell must be created, this method initializes the cell by calling its initWithStyle:reuseIdentifier: method. For nib-based cells, this method loads the cell object from the provided nib file. If an existing cell was available for reuse, this method calls the cell’s prepareForReuse method instead.
</pre>

When registering a UITableViewCell for reuse, which init method on that cell gets called?

相关文章

网友评论

      本文标题:UITableViewCell 每次复用都会走近的方法

      本文链接:https://www.haomeiwen.com/subject/fgpeqttx.html