我希望tableview在每个可滚动的行中显示多个图像.为此我正在使用,UITableView并且Custom UITableViewCell,在自定义tableView单元格中,我正在生成具有多个视图和图像的滚动视图,因此当我滚动表格时,它不能平滑地滚动它的闪烁.谁能建议我以更好的方式做到这一点?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// Products table view.
ProductCustomCell *cell = (ProductCustomCell *)[tableView dequeueReusableCellWithIdentifier:@"CatelogCell"] ;//] forIndexPath:indexPath];
if (cell == nil) {
cell = [[ProductCustomCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"CatelogCell"];
}
cell.productCellDelegate = self;
[cell initProperties];
[cell showProductsInScroll:catelogBundle];
}
Run Code Online (Sandbox Code Playgroud)