【发布时间】:2014-04-09 08:18:46
【问题描述】:
我正在使用原型单元来计算实际单元高度。由于我使用的是故事板,因此我选择通过对它进行出队来创建原型单元。示例代码:
- (MyCell *)prototypePriceOptionCell
{
if (_prototypeCell == nil) {
_prototypeCell = (MyCell *)[self.tableView dequeueReusableCellWithIdentifier:cellIdentifier];
}
return _prototypePriceOptionCell;
}
这个原型永远不会在cellForRowAtIndexPath 方法中返回给tableView。
它会被table view dequed以重用并在table view中显示吗?
【问题讨论】:
标签: ios objective-c uitableview cocoa-touch uikit