Note that there are some explanatory texts on larger screens.

plurals
  1. POpushViewController memory allocation problem
    primarykey
    data
    text
    <p>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</p> <pre><code>[self.navigationController pushViewController:table animated:YES]; [table release]; table=nil; </code></pre> <p>i try to print the reference count and i was shocked</p> <p>the reference count before push is = 1 and after push is = 4</p> <p>WHY?? can anyone help me please?? </p> <hr/> <p>the code was i used to initiate the table is</p> <pre><code>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; </code></pre> <p>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 !!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload