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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:50:14+00:00 2026-06-13T09:50:14+00:00

I am creating a app with MapView and UIImagePicker. I am displaying map on

  • 0

I am creating a app with MapView and UIImagePicker. I am displaying map on screen and its showing route as user moves on. User can capture images in between. I have two screens for that..

  1. Showing map
  2. Capturing image (This is pushed from screen 1)

When I go to screen 1 to screen 2. I show an ImagePicker and allow user to capture Images. When I pop back to screen 1 I release all objects and make it nil. This task generally done in viewDidUnload but I was getting memory issues so I did it when my view controller pops. So my all objects get release and nil as soon as I get done with them.

When I go to my login screen from map I am doing every thing I know like:

  1. Removing views from super view
  2. releasing all allated objects or retained objects (Including even NSString objects as well)
  3. Setting nil value to all those object.

When I run the app by profiling and there is no run time leak avaiable But even in Activity Monitor my app’s real memory continuesly get increase 🙁

After 10-12 images get captured I am getting Received memory warning. Level=1 I am not even storing UIImage object in memory. I am writing this in document dir and storing string path only.

Please help me and guide me what else can be done to solve this issue.

UPDATE

While releasing objects on back button I am using:

- (void)releaseObjects {

    [mapViewNewTour setDelegate:nil];
    [mapViewNewTour removeFromSuperView];
    [mapViewNewTour release];
    mapViewNewTour = nil;
    [lblNavTitle release];
    lblNavTitle = nil;
    [btnEdit release];
    btnEdit = nil;
    [txtTourName release];
    txtTourName = nil;
    [vwTourName release];
    vwTourName = nil;
    [mutDictOfflineSharing release];
    mutDictOfflineSharing = nil;
    [mutArrImage release];
    mutArrImage = nil;

    [_routeLine release];
    _routeLine = nil;
    [_routeLineView release];
    _routeLineView = nil;
    [aLazyLoader release];
}
  • 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-13T09:50:15+00:00Added an answer on June 13, 2026 at 9:50 am

    I recommend you run instruments and see where memory is used. There are specific instruments for memory usage analysis. The instrument you will want is Activity monitor and VM tracker.

    Also I recommend you double check that you are not running with NSZombieEnabled (check it in schemes), as it will cause memory warnings.

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

Sidebar

Related Questions

I am creating app where user can save options witch one is better? to
I am creating an app in C# where the user enters their name and
I'm creating a Map app in iPhone using MKMapView . I did successfully find
i am creating app which would download and save files, than user could use
I'm creating app for image scan with WIA. But my images has a lot
Im creating an app where you can toggle the FollowLocation on and off using
I am creating app that download 4-5 images from server and display as gallery.
I'm creating an app that needs to display the phone contacts with its photo,
I'm creating app where UILabel object will move over the screen. My question is
Hi i'm creating an app which have shopping cart and payment done via paypal

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.