2

現在、Facebook からユーザーのウォール フィードを読み込む UITableview を使用しています。私が抱えている問題は、テーブルビューに入れられた画像が正常に読み込まれるが、ユーザーがスクロールすると完全に黒くなることです。ここに私の cellForRow メソッドがあります:

 if ([[objectTypes objectAtIndex:indexPath.row] isEqualToString:@"photo"]) {
    //this is a picture

    if ([facebookPictureObjectIDs objectAtIndex:indexPath.row]) 
                    {
                        if ([sourceArray objectAtIndex:indexPath.row]) {
                            if ([[sourceArray objectAtIndex:indexPath.row] rangeOfString:[facebookPictureObjectIDs objectAtIndex:indexPath.row]].location != NSNotFound) {

                                imageCell.imageview.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[sourceArray objectAtIndex:indexPath.row]]]];
                                NSLog(@"source array objectwith image ID: %@",[facebookPictureObjectIDs objectAtIndex:indexPath.row]);


                            }else {


                                NSLog(@"Same Image object id is: %@", [facebookPictureObjectIDs objectAtIndex:indexPath.row]);


                            }

                        }   else {
                            NSLog(@"Source Array object NIL NIL NIL");

                        }                 

                    }else {
                        NSLog(@"Else Called");
                    }

    [imageCell layoutSubviews];
    returnCell = imageCell;
   }

助けてくれてありがとう:)

4

0 に答える 0