我有一个包含一些按钮,标签和UITableView的UICollectionViewCell。该表格视图在行数和内容上有所不同。 UICollectionViewCell是表视图数据源和委托。 UICollectionViewController强制我使用[collectionView dequeueReusableCellWithReuseIdentifier:@"CellID" forIndexPath:indexPath]
。在UICollectionViewCell中更新UITableView
在滚动浏览UICollectionView时,UICollectionViewCell中的UITableView不会更新其内容。
调用[tableview reloadData]
不会影响行数。 调用UICollectionViews reloadItemsAtIndexPaths:(NSArray *)indexPaths
似乎不是性能的好选择。
有没有人知道更聪明的方式来更新集合视图单元格内的表视图,而不是重用先前单元格的表视图?