iphone - Apple Lazy Loading Images within a nav controller, reverts back to placeholder images -
I implemented the LazyTableImages project () by Apple, but in my version I used RestKit to get data And my UItableviewcontroller was pushing
on the navigation stack so I would leave whatever Apple does to get xml in the applet. I think that this problem is not My problem is that when you come back from the UITB visual controller using the NAV back button or using any other tabbar object and come back, then the images which were previously loaded there, but immediately load the placeholder image Actually, the opposite happens.
This UITableview is like cached data, so when you come back, lazy tables interfere with images. I need to know that someone has implemented this code where they had to be repelled?
EDIT:
Looks like the image downloader is not zero for the second time, which prevents the image from loading. I'm still finding out how to bypass it. Of course, I can only take out the condition, but I do not know that it is "bad" for performance.
imageDownloadsIn progress, a temporary dictionary, is still all your data even though you are back. It has now become a different question, how do I delete the image? Downloading if a user is back from the current view or chimes
imageDownloadsInprogress is maintained, but I added [imagesDownloadsInprogress release] to the dealloc method, although I do not think that runs. Download the startEventImage: (WhatsonEvent *) EventRecord forIndexPath: (NSIndexPath *) IndexPath {Event ImageDownloader * ImageDownloader = [ImageDownloadsInfographic Objectworks: IndexPath]; If (imageDownloader == zero) {NSLog (@ "% @", eventRecord.title); Imagedownloader = [[Event Image Downloader Alloc] init]; Imagedownloader.eventRecord = eventRecord; ImageDownloader.indexPathInTableView = indexPath; Imagedownloader.delegate = self; [Image Download Progress Set Object: Downloader for Image: IndexPath]; [Download image downloader]; [Image downloader release]; [UIApplication ShareApp] .networkActivityIndicatorVisible = YES; }}
The way I do it is to create my own cache and save images When I call [tableView reloadData] in the user document directory (you say it, is not it?) It checks for each cell first, if the image is locally, otherwise it will be free Tell me if you want a code for it.
Comments
Post a Comment