Calling an IBAction from another file
Hi,
The structure of my app is:
switchviewcontroller who's sole responsibility is to change the views of the page.
mainmenucontroller this contains the code and xib of a main menu view.
What I have is a UIButton in mainmenucontroller, which when pressed loads a mapcontroller view. In switchviewcontroller I have an IBAction to load and unload the views. How can I make it so that the mainmenucontroller can access this IBAction as at the moment it doesn't show. If I try changing it's class to switchviewcontroller, the IBAction shows and I can connect it to the UIButton but it crashes with unrecognized selector sent to instance.
Thanks
Denis
|