2012-06-07 19 views

답변

1

이 링크는 당신이 당신의 문제를 해결하는 데 도움이 될 수 있습니다 참조 어떤 도움 :)에 대한

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; 
    } 

감사 : 여기 내 cellForRow 방법이다. http://developer.apple.com/library/ios/#samplecode/LazyTableImages/Introduction/Intro.html

관련 문제