title: Memory is not released under ARC
body: <p>I have an app with a parent View Controller. It has some buttons and when one of them is clicked it presents a Modal View Controller (using XIB). The code I use to present and dismiss the Modal VC is : </p>
  
  <pre><code>iPadViewController *iPadVC = [[iPadViewController alloc] initWithNibName:nil bundle:nil];
          [self presentViewController:iPadVC animated:YES completion:NULL];
  </code></pre>
  
  <p>and to dismiss :</p>
  
  <pre><code>-(IBAction)Back:(id)sender{
  [self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
  }
  </code></pre>
  
  <p>So the problem is, when I dismiss it, it does not release any memory. And if I present it 3/4 times it crashes. I am using ARC, never had similar problems because I tough that ARC did all the memory management job.
  I do have some backgrounds that need a lot of space and they are not getting released either. I tried :</p>
  
  <pre><code>[backgroundImage removeFromSuperview];
  backgroundImage=nil;
  </code></pre>
  
  <p>The memory does decrease using this code, I'm not sure if the image was released because the next time I press the button the memory increases to almost 300mb and terminates due to "memory pressure". If the VC was released it would work fine because it only uses 160mb on the iPad and 65mb on the iPhone. Also, My image is selected through the Xib utilities : </p>
  
  <p><a href="https://i.stack.imgur.com/jf6cv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jf6cv.png" alt="IMG"></a>
  </p>
  
  <p>And I tried to use Xcode instruments and it does not show any leak (!) but it does show that the allocations are growing and growing every time I click a button.</p>
  
  <p><a href="https://i.stack.imgur.com/ckJln.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ckJln.png" alt="Allocations with Xcode Tools"></a>
  </p>
  
  <p>and on my ViewController.h:</p>
  
  <pre><code>IBOutlet UIImageView (...);
  IBOutlet UIImageView (...);
  IBOutlet UILabel (...);
  IBOutlet UIButton (...);
  IBOutlet NSTimer (...);
  IBOutlet UIImage (...);
  IBOutlet UIView (...);
  
  -(IBAction)Back:(id)sender;
  
  @property (nonatomic, assign) int ;
  @property (nonatomic) IBOutlet UIButton ;
  @property (nonatomic) IBOutlet UIButton ;
  @property (nonatomic) IBOutlet UIButton ;
  @property (nonatomic) IBOutlet UIView ;
  @property (nonatomic) IBOutlet UILabel ;
  </code></pre>
  
  <p>I tried to give all the details about my code, but if you need anything else just let me know, and thank you all so much!</p>