From some ViewController
of my UINavigationController
stack I present another ViewController
and will never come back, but the problem is that deinit{}
is not called. How should I remove each ViewController
from the stack before navigation? Or should I use some other method? Now my code looks like
let destinationVC = storyboard?.instantiateViewControllerWithIdentifier("revealViewController") as! SWRevealViewController
self.presentViewController(destinationVC, animated: true, completion: nil)