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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:00:14+00:00 2026-05-30T09:00:14+00:00

I am working on an iPad (only) app and I stumbled across a weird

  • 0

I am working on an iPad (only) app and I stumbled across a weird problem. The app gets terminated after a memory warning on iPad 1 but works fine on iPad 2.
I am using ARC and targeting iOS 5. I use nibs and most of my assets are displayed using UIImageViews. I also have a few hundred buttons and plenty of gesture recognizers… I re-watched the WWDC11 videos (sessions 323 and 322) on ARC and I don’t seem to be doing anything special.

The app is UIImage intensive, I am doing lots of animations using UIImage. I am however using the initWithContentsOfFile constructor rather than the imageNamed call. I’m trying to prevent the images from being cached by the system.

I’m also using GCD to schedule sound effects and to animate views. I’m always doing this on the main thread.

The app uses a UINavigationController that never has more than 1 UIViewController on it’s stack. I can confirm that this is true because the didReceiveMemoryWarning only gets called on the current view controller (I’m logging the call).

The thing I don’t understand is why Instruments is reporting high numbers (as if the view controllers don’t get deallocated) in both the Allocations and VM Tracker instruments. The Allocations instrument shows a small drop when I navigate from one view controller to another (which is what I expect) but the VM Tracker Instrument shows that the Dirty Size is not dropping when I do the same thing. Eventually the app uses too much memory and gets terminated (on iPad 1). When I get memory warnings on the iPad 2 the app does NOT get terminated though…

It feels as if my images, sounds or views don’t get destroyed and the memory does not get reclaimed… My object hierarchy is very basic and there should not be any retain cycles of any sort. I don’t even have simple delegates…

Do you have any suggestions? I really don’t want to release this app only for the iPad 2 or newer… It’s an app for kids and it would be a pitty… I’d be so much happier to learn that I’m doing something wrong, as I really want to make sure this app is the best it can be…

Cheers,
Nick

  • 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-30T09:00:16+00:00Added an answer on May 30, 2026 at 9:00 am

    I don’t like answering my own question but I figured it could be helpful to future googlers. I implemented my own UIImage based animation and I no longer use the animationImages property. Turns out my memory issues are now gone as I no longer need to store all the images in memory and I load them as they are required using a timer.

    I actually think that rolling out a custom animation is beneficial since it allows for callbacks and more powerful customisation options.

    Once I’m happy with it and I feel like it’s ready to be shared I will post the class(es) on GitHub.

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

Sidebar

Related Questions

My ipad app is working correctly, the only problem is with launch image. i
I'm working with is some kind of catalog app for iPad (only) for my
I created a universal app for the iPhone-iPad. I'm only working on the iPhone
Am working in iPad app. I have 4 images for Splash screen (Landscape Right,Left
I'm working on a UINavigationController driven iPad app (testing in the simulator). There are
I'm currently working on an OpenGL ES 1.1 app for the iPad its running
Its working perfectly in the iphone simulator. But not in the ipad simulator. I
I'm working on some HTML content as part of an iPad app. We may
We're working on a web app that will deployed to mobile devices, iPad, iPhone,
I am working on an iPad app (which will not be submitted to the

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.