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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:09:47+00:00 2026-06-02T09:09:47+00:00

Here is some context to my issue…. using iOS 5 as the target for

  • 0

Here is some context to my issue…. using iOS 5 as the target for my iPhone app with ARC on:

I have an app that has a UINavigationController. There are multiple view on the stack that get pushed to the top. The final view that is shown is a UIWebView with Google Images website, and users can select an image and have it sent back to a UIImageView on the view previous in the nav stack. Users can then hit Back and then on the previous view to that hit a Save UIBarButton to save the image locally on their device. Here is what the stack looks like:

MainView -> DetailsView (with Save UIBarButton in upper right) -> ImageDisplayView -> WebView (with Google Images
website loaded)

The problem is, when a user selects a large image from Google Images (lets say a 5MB image) using the View Full Image button on Google Images Mobile, a memory warning is thrown and the views below it are released. So when a user goes back to the DetailsView with the Save button, the Save button is now gone. This is because didReceiveMemoryWarning is called.

So my questions are….

  1. Why is a memory warning called when displaying a 5MB image in an embedded UIWebView?

  2. How do I prevent the memory warning from causing issues (like dropping UIBarButton views) lower in my navigation stack?

  3. Are there any tips/tricks that anyone knows to get full sized images properly from Google Images mobile within an iPhone app?

To try this problem for yourself, create a UIWebView in a blank app and just load Google Images website into it. Install it on your device (3GS or lower will make the problem appear quicker) and just load full images into and out of the browser… you’ll eventually get the warning in your debug console.

  • 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-02T09:09:48+00:00Added an answer on June 2, 2026 at 9:09 am

    Check out the iOS documentation for “Responding to Low-Memory Warnings in iOS” where it states “View controllers automatically purge any views that are currently offscreen” Also look at “The View Controller Life Cycle”. Your view controllers will get viewWillUnload: and viewDidUnload: messages. You’ll have to recreate the views using, for example loadView (if not using Storyboards), when they are next needed.

    Specifically answering your questions:

    1. A memory warning is generated when memory is needed but not available. Even needing one byte can trigger the warning – it depends on how much is needed.
    2. The views will be dropped; it is your responsibility to recreate them. How you recreate them depends on how they were created initially (programmatically, by nib files, by storyboards).
    3. Seems you are getting images just fine but need to deal with the low memory warnings.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok.. here is some background on the issue. I have some 'critical' code that
I have some HTML that looks like this: <div class=product> Content In Here <div
I have some content sliding here. http://www.smallsharptools.com/downloads/jQuery/Slider/slider.html The HTML structure is simple. There is
Here's some example code: class Obj attr :c, true def == that p '=='
I have some Firebug console function calls that I wanted to disable when Firebug
I have an issue with the jquery validate plugin that doesn't make sense to
I seem to have hit a wall here and would appreciate some help from
I'm having an issue here that is blowing my mind. It's a very simple
I would really appreciate some help with the following issue: I have a gadget
I have an issue setting a JLabel 's text using a method in 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.