2012-07-31 70 views

回答

0

在每个滚动cellForRowAtIndexPath被调用UITableView。如果有任何问题,请检查此功能。

0

使用下面的代码来解决您的问题。这里cell是你的自定义单元格的对象

cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier]; 


    if (cell) { 
     cell=nil; 
     [cell release]; 
     [cell removeFromSuperview]; 
    } 
    if (cell == nil) { 
     cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MyIdentifier] autorelease]; 
} 
+0

失利重新使用细胞的目的。 – n00bProgrammer 2014-03-10 06:37:57