AsyncImageView icon indicating copy to clipboard operation
AsyncImageView copied to clipboard

Memory Warnings & Crash

Open tapan-nathvani opened this issue 10 years ago • 0 comments

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.

tapan-nathvani avatar Apr 24 '14 07:04 tapan-nathvani