/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
[[AsyncImageCache shared] loadImageForURL:updateAnnotation.profileImageURL delegate:self]; //--------------------------------------------------------------------- // AsyncImageCache Delegate //--------------------------------------------------------------------- { // just in case [twitterUserIcon release]; twitterUserIcon = nil; // remember this image, if it corresponds to the expected URL UpdateAnnotation *updateAnnotation = (UpdateAnnotation *) self.annotation; if (image != nil && [url isEqualToString:updateAnnotation.profileImageURL]) { twitterUserIcon = [image retain]; [self fadeInNewUserIcon]; } // force full redraw [self setNeedsDisplay]; }
Comments
