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 6598395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:20:34+00:00 2026-05-25T18:20:34+00:00

In my app, I display images with scrollview. I avoid memory issue by adding

  • 0

In my app, I display images with scrollview. I avoid memory issue by adding view as user scroll through. Scrolling seems fine but it stop in split second when new image is loaded on next/pervious view. I tried to load image on NSThread but no performance was improved.

I use [UIImage imageWithData:] to load image. I wonder if there is a way to load an image more efficient way. It would be appreciated for any comments regard this issue.

  • 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-25T18:20:35+00:00Added an answer on May 25, 2026 at 6:20 pm

    I think the best way is to keep three pictures at once in memory: the picture on the current screen, the picture on the next screen and the picture on the previous screen. By doing this you can scroll smoothly. You can use your imageWithData method with this procedure.

    It gets even simpler if you use imageNamed instead, because this method caches the pictures if it has enough memory. So you just have to load the current picture and the next picture by just calling

    [UIImage imageNamed:@"nextPic"];
    

    By executing this, it loads the picture into the cache but does not display it. The next time you have to display the picture it is already in memory.

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

Sidebar

Related Questions

Hi I plan to display images in view files through out the site so
I am using a scroll view to display a CATiledView of some large images.
Okay, here is my issue: My app has a display of categories in the
I'm developing an app that would display images and change them according to the
There are a few G1 users reporting that my app won't display images. I
I have an app that processes images and use jQuery to display progress to
I'm having trouble displaying SOME images on my android app. Just normal display image
I display images in my WPF app using BitmapImage . However, I would like
I am developing an android app in which i need to display images after
I have a rails 3.1 app and I am adding carrierwave to store images.

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.