Calling a method from source viewcontroller in segues
===

I have 2 views namely: MainView and InAppPurchaseView.
I use a segue to move between them.

My question is: is it possible to use mainview's viewcontroller for controlling both views?

My in app purchase view only has 1 button in it and i want to run a method from my mainviewcontroller when that button is pressed. So i don't want to go through all the process of passing data using prepare for segue but only call an existing method from the mainviewcontroller.

thanks for the answers