Navi
Navi

Reputation: 1686

Release memory in ARC based APP?

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

Answers (1)

DarkDust
DarkDust

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

Related Questions