0

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?

Vineet Singh
  • 4,009
  • 1
  • 28
  • 39
Navi
  • 1,696
  • 2
  • 17
  • 36

1 Answers1

1

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.

DarkDust
  • 90,870
  • 19
  • 190
  • 224