Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Warnings & Crash #48

Open
tapan-nathvani opened this issue Apr 24, 2014 · 0 comments
Open

Memory Warnings & Crash #48

tapan-nathvani opened this issue Apr 24, 2014 · 0 comments

Comments

@tapan-nathvani
Copy link

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 tapan-nathvani changed the title Memory Warnings Memory Warnings & Crash Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant