Reputation: 1686
I am using a lot of NSDictionaries
and NSArrays
,so currently am allocating everything at viewDidload
and making everything nil in ViewDidDisappear
.
-(void)viewDidDisappear:(BOOL)animated
{
loginDictionary=nil;
}
Now my memory will get down right?
Upvotes: 0
Views: 70
Reputation: 92432
As long as you don't have any other references to the object pointed to by loginDictionary
, the memory should go down a bit. You can use Instruments to check that.
Upvotes: 1