" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

How to remove the issue when dealloc is not getting called.

Posted on November 24th, 2015 by Surbhi Garg

Have you ever come across a problem where dealloc of ViewController was not getting called? Yes, there can be a case where it can happen. I was adding a View as subview to another View like as follows [self.view addSubview:_secondViewController.view]; _secondViewController is an object of SecondViewController SecondViewController has a Valid NSTimer object. then i remove […]