0

Possible Duplicate:
Pull twitter profile image

Does anyone know how can i get profile image from twitter as well in table view cells? I'm using the following code to get username and text. But want to have profile image for a better clarity.

NSDictionary *tweet = [self.results objectAtIndex:indexPath.row];
    cell.textLabel.text = [NSString stringWithFormat:@"%@: %@", [tweet objectForKey:@"from_user"],
                           [tweet objectForKey:@"text"]];

I'm borrowing the code from here if you need in any case.

Community
  • 1
  • 1
Monis Manzoor
  • 183
  • 3
  • 14

1 Answers1

0

If you already have the image simply do:

cell.imageView.image = theTwitterImage;

otherwise, look at the link @Legolas posted in the comments to your question. (I havent used the Twitter API before so I can't help you actually get the image.)

Community
  • 1
  • 1
Ali Hamze
  • 1,590
  • 13
  • 26