Running into the same problem I always have (never been successful doing this)... when I add images to my app, it simply does not work properly. I have created a short movie https://vimeo.com/141356699
If you review, you'll notice that lazy load the images need a few seconds to load and then they bounce to the correct image. I am not doing anything strange to my image - user takes picture with camera and then saves using core data. Then the image should appear as it does, but slowly when scrolling with lazyload... this is only with 7 entries, I am not sure what will happen with 100's of entries. It's as though the code is redrawing the entire 6, 7 or 8 MB image in that little tiny window... I am not sure, but takes a long time to redraw (see video)...
Any help would be greatly appreciated...
Also, notice the image records appear in a different sequence each time the UIView returns... is there a way to organize alphabetically?
If I put that same info onto willDisplay, the entire system slows right down as it needs to draw and redraw the cells over and over over again...
Here is code... I've also been trying to use AsyncImageView but have had no luck
This code is found in viewDidLoad...
SCTableViewSection *Section2 = [self.tableViewModel sectionAtIndex:0];
Section2.cellActions.willDisplay = ^(SCTableViewCell *cell, NSIndexPath *indexPath)
//AsyncImageView *imageView = (AsyncImageView *)[cell viewWithTag:2];
//imageView.image = [UIImage imageNamed:@"Placeholder.png"];
SCTableViewSection *Section3 = [self.tableViewModel sectionAtIndex:0];
Section3.cellActions.lazyLoad = ^(SCTableViewCell *cell, NSIndexPath *indexPath)
AsyncImageView *imageView = (AsyncImageView *)[cell viewWithTag:1];
NSString *imageString = (NSString *)[cell.boundObject valueForKey:@"thumbnail"];
NSString *fullName = [NSString stringWithFormat:@"Documents/%@", imageString];
NSString *imagePath = [NSHomeDirectory() stringByAppendingPathComponent:fullName];
UIImage *originalImage = [UIImage imageWithContentsOfFile:imagePath];
NSLog(@"added a new image with lazyload");
// size of actual thumbnail to display in cell
CGSize destinationSize = CGSizeMake(154,95); // size of actual thumbnail
UIImage *thumbnail = UIGraphicsGetImageFromCurrentImageContext();
imageView.imageURL =[NSURL URLWithString:(NSString *)[cell.boundObject valueForKey:@"thumbnail"]];
imageView.image = thumbnail;