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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:40:54+00:00 2026-05-18T07:40:54+00:00

I build an application and every tab-bar item contains 4 or sometimes 5 nested

  • 0

I build an application and every tab-bar item contains 4 or sometimes 5 nested navigation..i try to do every thins BUT pushViewController cause a memory allocation problem in instruments and i don’t know what can i do,,
the code is

[self.navigationController pushViewController:table animated:YES];
[table release];
table=nil;

i try to print the reference count and i was shocked

the reference count before push is = 1
and after push is = 4

WHY??
can anyone help me please??


the code was i used to initiate the table is

custemTable *table=[[custemTable alloc] initWithNibName:@"custemTable" bundle:nil ];
 NSString selectedCellText=((custemCell)[tableView cellForRowAtIndexPath:indexPath]).THNameLabel.text;
 cll=(custemCell)[tableView cellForRowAtIndexPath:indexPath];
 cll.backgroundLabel.backgroundColor=[UIColor ];
 [backgroundSelectedCell release];
 backgroundSelectedCell=nil;
 table.showingTill=selectedCellText;
 table.title=@"...";
 selectedCellText=nil;
 [self.navigationController pushViewController:table animated:YES];
 [table release];
 table=nil;

the real problem that when the application starts the memory allocation be 1.56 M and when i select any cell and the pushViewController work the memory becaome 2.8 M and when i back the memory stay on range of 2.8 M (about 2.7 or 2.6 sometimes) to know..there are no memory leak and i was relese everything i allocate or retain or copy and i don’t what can i do !!!

  • 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-18T07:40:54+00:00Added an answer on May 18, 2026 at 7:40 am

    I would say there is something else in you App leaking that memory.

    Can you paste more of your code, including how you are instantiating *table?

    Also you shouldn’t rely on the retainCount values to determine whether an object is leaking or not. The system will also retain objects that it needs and release it when they are no longer required, and your retainCount will always be affected by that.

    As a general rule, if you alloc, retain or copy an object, it is your responsibility to release it. Everything else is dealt with by the system and will be flushed with the auto release pool.

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

Sidebar

Related Questions

I'm trying to build a mvc3 application using VS 2010. But when every i
I try to build some application using hibernate for persistence (my first one). The
I'm trying to build an application in simple PHP but could be done in
Every time I build my web application, my session variables are lost from before
I intend to build a web application where users can enter their time every
Hi I need to build an ruby on rails application which will call every
we're trying to build an application that records the decibel level every seconds or
I'd like to build an application (if there isn't already one) to log every
I'm getting the following error every time I try to export my application from
I must build a Application that will use Webclient multiple times to retrieve every

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.