小编Meg*_*ega的帖子

objective c UITableView无法使用自定义单元格和视图滚动平滑

我希望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)

iphone objective-c ios ios5 ios7

2
推荐指数
1
解决办法
8347
查看次数

标签 统计

ios ×1

ios5 ×1

ios7 ×1

iphone ×1

objective-c ×1