我已经使用自定义单元格从 tableView 中的文件夹加载了图像,该单元格在每行中有三个图像。即使我调整了图像大小,当向上或向下滚动时它也会变慢
-(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellIdentifier = @"cell";
CustomCell *cell = (CustomCell *) [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if (cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
cell = customCell;
}
if ([imageLists count] > indexPath.row*noOfImageInRow) {
ImagesClass *Obj1 = [imageLists objectAtIndex:indexPath.row*noOfImageInRow];
UIImage *image1 = [self getImageForImageId:Obj1.imageId FromPath:SAVEDIMAGE_DIR];
Obj1.thumbImage = [self imageWithImage:image1 convertToSize:CGSizeMake(130, 130)];
[cell setImage:1 :Obj1.thumbImage RowNo:indexPath.row*noOfImageInRow];