Correct way of removing (deleting) a view/viewController from the stack after segue in Swift
- 阅读更多 关于 Correct way of removing (deleting) a view/viewController from the stack after segue in Swift
I am running into a problem here. I am presenting views with performSegueWithIdentifier . Everything goes smoothly. The problem is that as a test, I only have 2 viewControllers with some data in them and I have two buttons that call a segue back to the other VC. If I keep performingSegues, you can clearly see that the memory usage goes up every two segues by around 0.4Mb. This tells me that the Views are not being deleted/removed from the view stack and are just using memory. I would like to know the correct way of getting rid of the view that presents the other view by using