I created two view controllers like
Navigation controller -> View Controller -> Details View Controller
1 2 3
The (2) View Controller has a button in it which when clicked will shows (3) Details View Controller. I have created a segue from button to (3) VC.
I have added deinit
blocks in those two classes.
deinit {
print("vc deinit")
}
However, this does not get logged. When will a view controller get deallocated?