title: Login flow failing after upgrading to iOS9
body: <p>After upgrading my app to iOS9 I’am getting an error in my app which says:</p>
  
  <p><strong>: objc[344]: Cannot form weak reference to instance (0x15919e00) of class LoginVC. It is possible that this object was over-released, or is in the process of deallocation.</strong></p>
  
  <p>Below is the function in which i get this error:</p>
  
  <pre><code>-(void)dismissLogin {
  self.isLoggingIn = NO;
  [self stopLoginAnimation];
  [self dismissViewControllerAnimated:YES completion:NO];
  [[NSNotificationCenter defaultCenter] removeObserver:self];
  [self.appDelegate setLoginVC:nil];
  [self.view removeFromSuperview];
  //[APPDEL selectTabBar];
  }
  </code></pre>
  
  <p>The app gets stuck at the login screen and doesn't switch to next screens.</p>
  
  <p>This error doesn’t come in iOS8. 
  Can anyone help me with this issue.</p>