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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:41:29+00:00 2026-05-23T09:41:29+00:00

I have 5 tabs in my application, the fifth tab is Settings tab, (UINavigationController

  • 0

I have 5 tabs in my application, the fifth tab is Settings tab, (UINavigationController inside), one of the options is where user is able to edit personal info and choose a profile picture.

After firing UIImagePickerController (camera mode) and pressing cancel (I’m not even talking about taking a picture) everything is returned to an original state, to the first tab, all views and controllers were released and recreated by iOS. Everything that user has updated in the settings and didn’t save is gone.

How is it possible to avoid that?

Note: I’m using singleton instance of UIImagePickerController, no leaks found with Instruments. “Received memory warning. Level=1” appears constantly when I fire the picker.

You’ll be a life saver – thanks!

— EDIT —

Found it:

I was using a custom tab bar (UIView), so in the settings I was presenting the UIImagePickerController modal from that custom tab bar controller (which is main in the app) (otherwise the picker would go underneath it).

I rebuilt the tab bar so now the custom view just a subview on a standard UITabBar and now I’m calling [self presentModalViewController:imagePickerController animated:YES]; in my app settings and it works just fine.

So, the conclusion is that image picker acts weirdly when you’re presenting it from another controller and not from “self”.

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

    Sounds like you’re not handling memory warnings properly. In the simulator, you can select “Simulate Memory Warning” to simulate what happens.

    The long story is that -[UIViewController didReceiveMemoryWarning] releases its view if the view does not have a superview. There are three easy ways to handle this:

    • Override -didReceiveMemoryWarning to do nothing.
    • Save state in -viewDidDisappear:, which should always be called before the view gets unloaded (unless the view never appeared in the first place).
    • Save state as the user edits it, either by persisting it immediately (if you have no cancel button) or to an property/ivar in the view controller (if you want to only save if the user doesn’t click cancel).

    You might also want to think about what happens if your app is backgrounded and killed…

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

Sidebar

Related Questions

I have a 2 tabs application. In the first one, I'm creating objects of
I have several tabs in my application, and each tab loads a different sub-page
I have 4 tabs in my iphone application. When user will click a button
I have six tabs on my Windows application. I need to put tab #6
Here's my problem: I've have an application with tabs. in each tab I have
I am using a UiTableView in our application.We have two tabs in controller one
I am developing a tab bar application. I have five tabs in it. For
I have an application with various tabs (on a tabhost). Each tab is an
I have a tab bar in my application. In this I have three tabs.
I've created a tab bar application. I have four tabs; on the selected tab,

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.