0
我已加載從文件夾中圖像的tableView與每個row.Even有三張圖片,雖然我調整後的圖像自定義單元格它,它緩慢時向上或向下滾動加載圖像中的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];
重量是烏爾問題? – iPatel 2013-02-12 11:39:30
當我滾動向下或向上是需要時間來向上或向下移動 – user2003416 2013-02-12 11:42:27
把UR的cellForRowAtIndexPath方法 – iPatel 2013-02-12 11:44:04