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

  • SEARCH
  • Home
  • 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 557691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:03:12+00:00 2026-05-13T12:03:12+00:00

i have an uiscrollview and i add one by one uiimageviews but when i

  • 0

i have an uiscrollview and i add one by one uiimageviews but when i add more than 40 objects i have problem with memory i guess and the app crashes…what should i do? i am trying to make an app like photo viewer from apple! Help please!

i do not want thumbnais i just want to show the next image when the user flick from one to another but i have to unload the previous image and show the next one

i remove the previous like this

UIImageView l;

l=[[scroll subviews] objectAtIndex:0];
[l removeFromSuperview];
l=nil;

and then i add the next one like this

[scroll insertSubview:imageView atIndex:counter];

but i see a black background no image

please help!

  • 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-05-13T12:03:12+00:00Added an answer on May 13, 2026 at 12:03 pm

    The best way to do this is to load a few of the images at a time into a table view. In each cell of the table, put three thumbnails. You’ll need to make a custom cell. That way, the table cells will be de-queued and the memory re-used. Check the Facebook Three20 project, I think they’ve implemented it like this, so you’ll have some code to work with.

    http://joehewitt.com/post/the-three20-project/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have UIScrollView with UIImageView on it. On UIImageView I have round marker(one more
I have a UIScrollView that shows vertical data, but where the horizontal component is
I have a Graph being drawn inside a UIScrollView . It's one large UIView
Hello i have a uiscrollview and i have one object of uiimageview inside the
I have a UIScrollView . I'd like to do some animation with it, but
Hi I have populated uiscrollview with images (code is bellow) but I don't know
I have a UIScrollView with multiple UIImageViews in it created like this. frame =
I am trying to add two UIScrollView 's into one UIView , Both the
I just want to add UITableView to the one page of my multi-page UIScrollView.
I need a UIScrollview to show some static content in my app. I have

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.