Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:17:10+00:00 2026-06-15T22:17:10+00:00

I need to scroll over 200 images. I ahve found a tutorial that says

  • 0

I need to scroll over 200 images. I ahve found a tutorial that says that I can over 1000 images with the tutorial code.
The tutorial is:

http://soulwithmobiletechnology.blogspot.com.br/2011/05/how-to-load-1000s-of-uiimageview-on.html?m=1

I followed the tutorial, but when I use 100 images aprox..the app crash with memory warning.

My code is here:

http://pastebin.com/BKmsdXxf

I have already with UIIMagenamed, with initWithContentsOfFile

but the problem persist. Pls , help me!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:17:11+00:00Added an answer on June 15, 2026 at 10:17 pm

    I have fixeed!

     - (void)scrollViewDidScroll:(UIScrollView *)scrollView
    {
    CGPoint scrollOffset=scrollView.contentOffset;
    int pagAtual = scrollOffset.x/scroll.frame.size.width;
    if(pagAtual != 0) { //always release all imageViews and load the current and next
    for(int iCnt = 0; iCnt < [scroll.subviews count]; iCnt++) {
        UIView *viewLiberar = [scroll.subviews objectAtIndex:iCnt];
     if ([viewLiberar isKindOfClass:UIImageView.class]) {
        [viewLiberar removeFromSuperview];
         viewLiberar = nil;
       }
     }
    }
    
    if(pageOnScrollView < ((int)scrollOffset.x/scroll.frame.size.width))
     { 
    
     //load the next page
    [self loadNextPage:(pagAtual)];
    [self loadNextPage:(pagAtual + 1)];
     }
    else if(pageOnScrollView > ((int)scrollOffset.x/scroll.frame.size.width))
      {
      if(pagAtual>0)[self loadNextPage:((int)scrollOffset.x/scroll.frame.size.width)-1];
        }
    
         pageOnScrollView=scrollOffset.x/scroll.frame.size.width;
          }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a ScrolledWindow that can scroll over a grid of
The dojox.widget.Calendar lets us scroll over the years easily. Can that be simulated/added to
i need to intimate the user that toolbar contains the scroll bar and there
I've got a custom AS3 scrollbar that I need to modify. The scroll thumb
I'm trying to create a function that i can use over and over. I
In my current project I need my users to be able to scroll over
I need to scroll up the div as the new text comes in. My
I need to a scroll paging with jqgrid where I query the database each
I need to be able to scroll a RichTextBox to the bottom, even when
I need a very simple jQuery to constantly scroll a list of text items

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.