IconDownloader,imageDownloadsInProgress is null
<p>I use apple's code IconDownloader to download the image,I have added the IconDownloader file,but it doesn't work.</p>

<pre><code>- (void)startIconDownload:(UserInfo *)userImageObject forIndexPath:(NSIndexPath *)indexPath
{
    IconDownLoader *iconDownloader = [imageDownloadsInProgress objectForKey:indexPath];
    if (iconDownloader == nil) 
    {
        iconDownloader = [[IconDownLoader alloc] init];
        iconDownloader.appRecord = userImageObject;
        iconDownloader.indexPathInTableView = indexPath;
        iconDownloader.delegate = self;
        [imageDownloadsInProgress setObject:iconDownloader forKey:indexPath];
        NSLog(@"indexPath:%@",indexPath);
        NSLog(@"iconDownloader:%@",iconDownloader);
        NSLog(@"imageDownloadsInProgress:%@",[imageDownloadsInProgress objectForKey:indexPath]);
        [iconDownloader startDownload];
        [iconDownloader release];
    }

}
// called by our ImageDownloader when an icon is ready to be displayed
- (void)appImageDidLoad:(NSIndexPath *)indexPath
{
    IconDownLoader *iconDownloader = [imageDownloadsInProgress objectForKey:indexPath];
    NSLog(@"%@",imageDownloadsInProgress);
    if (iconDownloader != nil)
    {
        UITableViewCell *cell = [myTableView cellForRowAtIndexPath:iconDownloader.indexPathInTableView];

        // Display the newly loaded image
        cell.imageView.image = iconDownloader.appRecord.image;

    }
}
</code></pre>

<p>this is my log:</p>

<pre><code>1970-01-13 14:44:32.-714 Mo[5726:307] indexPath:&lt;NSIndexPath 0x275260&gt; 2 indexes [0, 0]
1970-01-13 14:44:32.-694 Mo[5726:307] iconDownloader:&lt;IconDownLoaderTan: 0x2c57a0&gt;
1970-01-13 14:44:32.-689 Mo[5726:307] imageDownloadsInProgress:(null)
</code></pre>

<p>we can see the problem is imageDownloadsInProgress dictionary is null,why?but the key(indexPath) and the object(iconDownloader) are not null.who can tell me why?thanks in advance.</p>

<p>I have defined the imageDownloadsInProgress in my .h file:</p>

<pre><code>NSMutableDictionary *imageDownloadsInProgress;  
</code></pre>
