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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:51:05+00:00 2026-06-12T02:51:05+00:00

I am developing an app, which needs to use images that have a resolution

  • 0

I am developing an app, which needs to use images that have a resolution higher then (2000 x 2000) for text clarity purposes.

I have a Background image, over which I need to show Overlay Images with the same resolution. The number of overlays are variable, from 2 to 30.

As loading the Image with UIImage, it takes 4 Bytes for every pixel, so if one image has resolution 3000×3000, it will take up-to 34 MB of memory, 15 MB for 2000 x 2000.

Thats where the problem rises, the app crashes after loading 4-5 images on 3GS, and 11-13 images on iPhone 4.

The Overlays need to be placed exactly over the background image. They are just like what we have in Google Maps traffic Overlays. This doesn’t rule out tiling, but makes the task relatively complex.

How should I handle this problem?

  • 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-12T02:51:06+00:00Added an answer on June 12, 2026 at 2:51 am

    Definitely, you can’t load whole image set into memory at once.
    You need to load only visible portion of image data and should unload invisible part as fast as possible.

    If you want to solve this at QuartzCore level, there’s CATiledLayer class just for this purpose.

    Apple Reference: https://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/CATiledLayer_class/Introduction/Introduction.html

    Apple Sample Code: https://developer.apple.com/library/mac/#samplecode/CALayerEssentials/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008029

    Additional informations: http://red-glasses.com/index.php/tutorials/catiledlayer-how-to-use-it-how-it-works-what-it-does/

    To use this layer, you need to split source images into many tiles. And supply them when the layer needs it. (drawLayer:inContext: method.) The method will be called on non-main thread, so user-interface won’t be blocked. Don’t forget freeing invisible tile’s image to save memory.

    Also, you can implement this with low-level OpenGL code with dynamic resource loading using background thread. In this case, you can use PVRTC lossy, in-memory compression which can save video-memory usage a lot, but it’s really painful, and time-consuming work. I recommend using of CATiledLayer. This is enough for most cases.

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

Sidebar

Related Questions

I am developing an app that needs to send text messages, so I have
I am developing an application in cocoa,which needs to check whether that app is
I am developing the app that needs the two scrollview which is like follow
So I am developing an app which contains a table view that has images
I am developing a BlackBerry app which needs to read from an xml file.
I am developing an android app which needs to activate the GPS. I read
I am developing an app which listens to incoming sms. I have added the
I'm currently developing an app which will use a Linq to SQL (or possibly
Ok guys I am developing an iPhone app I have a Model class which
I am developing a Facebook app. I have a server side OAuth flow which

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.