I\'m presenting a ViewController modally. How can I access the parent view controller ?
My architecture is TabBarController=>VC1=>VC2=>VC3=>MVC1, and I want to reach VC3
Addition to Vibhor Goyal - Sometimes, self.presentingViewController registers as NavigationController. Therefore try:
if let vc = self.presentingViewController.childViewControllers.last as? YourViewController { // do stuff here }