Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-14-2009, 10:59 AM   #1 (permalink)
xnapp
Registered Member
 
Join Date: Sep 2009
Posts: 23
xnapp is on a distinguished road
Default 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
xnapp is offline   Reply With Quote
 

» Advertisements
» Online Users: 574
14 members and 560 guests
bignoggins, djbrooks111, Domele, Farfalo, gordo26, HemiMG, mariano_donati, mediaspree, ndhieuvn212, stevenkik, SuperDietGenius, tjfallon, tknp
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,320
Threads: 93,989
Posts: 402,413
Top Poster: BrianSlick (7,978)
Welcome to our newest member, JessaWilson
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:00 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.