Send image to another view controller UIImageView IOS 5.1
I have a list of names from Facebook in my uitableview , when user select a row user detail should be shown in another view.

in my friends.m 

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
        long long fbid = [[arrayOfIDs objectAtIndex:indexPath.row]longLongValue];
        
        NSString *user=[NSString stringWithFormat:@"%llu/picture",fbid];
        
        [facebook requestWithGraphPath:user andDelegate:self];
        
        FriendDetail *profileDetailPicture = [[FriendDetail alloc] initWithNibName: @"FriendDetail" bundle: nil];
        
       
        profileDetailPicture.profileImage.image= transferImage.image;
        
        profileDetailPicture.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
        
        [self presentModalViewController:profileDetailPicture animated:YES];
        
        [profileDetailPicture release];
    
        
    }

    -(void)request:(FBRequest *)request didLoad:(id)result{
        if ([result isKindOfClass:[NSData class]])
        {
           transferImage.image = [[UIImage alloc] initWithData: result];
          // UIImage * sendPicture=[[UIImage alloc] initWithData: result];
    
            NSLog(@"Profile Picture");
        }
    }

This fine because if i put an uiiamgeview below table view to see if it works or not,it seems i get the correct image it works.
![enter image description here][1]


but when i select the row and try to send the image to other viewcontroller UIImageview in following lines

    FriendDetail *profileDetailPicture = [[FriendDetail alloc] initWithNibName: @"FriendDetail" bundle: nil];
            
           
            profileDetailPicture.profileImage.image= transferImage.image;
            
            profileDetailPicture.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
            
            [self presentModalViewController:profileDetailPicture animated:YES];
 
it doesnt send the image to the detail view controller where friends' image should appear![enter image description here][2]


I tried both UIImageView and UIImage methods but couldnt make it done. 

Whats wrong with the code?

  [1]: http://i.stack.imgur.com/pGSGS.png
  [2]: http://i.stack.imgur.com/gTXMA.png
Send image to another view controller UIImageView IOS 5.1
===

I have a list of names from Facebook in my uitableview , when user select a row user detail should be shown in another view.

in my friends.m 

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
        long long fbid = [[arrayOfIDs objectAtIndex:indexPath.row]longLongValue];
        
        NSString *user=[NSString stringWithFormat:@"%llu/picture",fbid];
        
        [facebook requestWithGraphPath:user andDelegate:self];
        
        FriendDetail *profileDetailPicture = [[FriendDetail alloc] initWithNibName: @"FriendDetail" bundle: nil];
        
       
        profileDetailPicture.profileImage.image= transferImage.image;
        
        profileDetailPicture.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
        
        [self presentModalViewController:profileDetailPicture animated:YES];
        
        [profileDetailPicture release];
    
        
    }

    -(void)request:(FBRequest *)request didLoad:(id)result{
        if ([result isKindOfClass:[NSData class]])
        {
           transferImage.image = [[UIImage alloc] initWithData: result];
          // UIImage * sendPicture=[[UIImage alloc] initWithData: result];
    
            NSLog(@"Profile Picture");
        }
    }

This fine because if i put an uiiamgeview below table view to see if it works or not,it seems i get the correct image it works.
![enter image description here][1]


but when i select the row and try to send the image to other viewcontroller UIImageview in following lines

    FriendDetail *profileDetailPicture = [[FriendDetail alloc] initWithNibName: @"FriendDetail" bundle: nil];
            
           
            profileDetailPicture.profileImage.image= transferImage.image;
            
            profileDetailPicture.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
            
            [self presentModalViewController:profileDetailPicture animated:YES];
 
it doesnt send the image to the detail view controller where friends' image should appear![enter image description here][2]


I tried both UIImageView and UIImage methods but couldnt make it done. 

Whats wrong with the code?

  [1]: http://i.stack.imgur.com/pGSGS.png
  [2]: http://i.stack.imgur.com/gTXMA.png