I'm having a memory-related issue, that is, whenever I go(segue) to a second view and then go back (dismiss), the memory keeps stacking up.
I have the following code in my second viewController. However, it does not deallocate memory.
override func viewWillDisappear() {
super.viewWillDisappear()
self.dismissController(self)
self.removeFromParentViewController()
}
Thanks in advance.