MGTwitterEngine - Using getImageAtURL on iPhone

Posted by Andrew Malchow on Stack Overflow See other posts from Stack Overflow or by Andrew Malchow
Published on 2009-07-10T02:57:58Z Indexed on 2010/05/12 12:04 UTC
Read the original article Hit count: 393

Essentially, I'm working on asynchronously downloading images and adding them to specific UITableView cells (twitter profile images using MGTwitterEngine from Matt Gemmell).

I've looked at general asynchronous download code and must admit, I'm still too much of a noob to understand it well enough to adapt it to my purposes. Instead, I'm attempting to use Gemmell's included getImageAtUrl method to add the images.

I have it working to the point that -imageReceived: receives the images for visible cells, however, I'm stuck as to how to include them into the appropriate cells at that point.

    - (void)imageReceived:(UIImage *)image forRequest:(NSString *)identifier
{
    NSLog(@"Got an image:%@",image);
    // What goes here? Or elsewhere?
}

This method is within my main view controller, I also have a custom cell controller where I'm drawing the cell content using Loren Brichter's fast scrolling code.

Any help with this MGTwitterEngine method in particular, or with dynamically adding these images to my table cells would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about twitter