草庐IT

UIPendingXOCell

全部标签

ios - UITableView - cellForRowAtIndexPath 延迟渲染

我有一个UITableView,它的单元格可能会有所不同,具体取决于要在每个单元格上显示的数据,所以我有两个可重复使用的单元格,UIPendingXOCell和UIXOCell。在某些时候,每个UIPendingXOCell都会变成一个UIXOCell。请参阅下面的代码了解一些上下文:overridefunctableView(tableView:UITableView,cellForRowAtIndexPathindexPath:NSIndexPath)->UITableViewCell{varxoItem=self.xoForIndexPath(indexPath)varxoIte