I have a settings screen, in that I have a table cell. By clicking on that I take to another screen where user can choose an option and I want it back in the previous view c
Do the following in the view controller that has the back button
Swift 3
override func didMove(toParentViewController parent: UIViewController?) { if !(parent?.isEqual(self.parent) ?? false) { print("Parent view loaded") } super.didMove(toParentViewController: parent) }