So i have two View Controllers, Vc1 and Vc2. I am navigating from Vc1 to Vc2 by using the following:
let vc2 = Vc2(nibName: "Vc2", bundle: nil)
self.navigationController?.pushViewController(vc2, animated: true)
then in Vc2 I do:
self.navigationController?.popViewControllerAnimated(true)
Now how can I access a method defined in Vc1 from Vc2? Note: I am not using storyboards instead i am using Xib files.