AsyncImageView
AsyncImageView copied to clipboard
Memory Warnings & Crash
Thanks for amazing class,, its really awesome for lazy loading issues. but i am facing memory warnings when i download more than 30 images and then its crashes...
for(int i =0; i<[self.imageArray count];i++)
{
// self.imgView = [[UIImageView alloc]initWithFrame:CGRectMake((320*(i)+7), 10, 306, 300)];
NSString *imageURL = [[self.imageArray objectAtIndex:i]valueForKey:@"image_name"];
NSURL *url = [NSURL URLWithString:imageURL];
newPageView = [[AsyncImageView alloc] init];
newPageView.imageURL=url;
// [newPageView loadImageFromURL:url withName:@"" andType:@"jpg"];
newPageView.contentMode = UIViewContentModeScaleToFill;
newPageView.frame = CGRectMake((320*(i)+7), 10, 306, 300);
[newPageView setUserInteractionEnabled:YES];
[self.scrollView addSubview:newPageView];
}
i am using scrollView to display multiple images horizontally with paging enabled.