It could be that you have not selected your own ViewController class as 'Files Owner' instead of generic UIViewController in Interface builder (its under Object identity in properties pane if you select files owner).
Edit: Actually i am not really sure, probably should'nt have answered, consider it a bump
It could be that you have not selected your own ViewController class as 'Files Owner' instead of generic UIViewController in Interface builder (its under Object identity in properties pane if you select files owner).
Edit: Actually i am not really sure, probably should'nt have answered, consider it a bump
Nope I set the ViewController which I set the IBAction as the File's Owner. Thanks anywho.
How is 'enter' method declared in the header file? Probably as IBAction. Does it make a difference that in the implementation it void?
Check the connection in IB. Right click on file owner and see in the popup if there's anything wrong.
How is 'enter' method declared in the header file? Probably as IBAction. Does it make a difference that in the implementation it void?
Check the connection in IB. Right click on file owner and see in the popup if there's anything wrong.
IBAction is void, it just makes the method appear in IB. If it isn't an IBAction in the .h, then you won't have access to it to make a connection anyway.
I just verified that if the .m says void while the .h says IBAction, everything works just fine.
I'm thinking the issue is along the lines of what kasparp said.
IBAction is void, it just makes the method appear in IB. If it isn't an IBAction in the .h, then you won't have access to it to make a connection anyway.
I just verified that if the .m says void while the .h says IBAction, everything works just fine.
I'm thinking the issue is along the lines of what kasparp said.
Well I'm guessing Kasparp was saying to set the ViewController under File's Owner > Identity [Tab] > Class Identity > Class. Which I did, unless that's not what he was talking about...
According to the error message, the IBAction is being sent to a generic UIViewController, not the one you made. I would recommend you post the following if you want help:
the .h file for your view controller class.
Exactly what you typed in for "Files Owner".
Any other code used to create this view controller.
Without more info, we have no idea what the problem could be.
I don't know what else to tell you that hasn't already been said.
[ANSWER] Oh man I figured out the problem! You guys helped me by telling me it was set to a generic View Controller. Doing some mindless digging, I went into the List View Mode in Interface Builder and all I had to do was select each view under the Tab Bar Controller and connect it to my ViewController class under the Identity tab. Not the Tab Bar Items.
Where mainMenuTabBarController is a tabBarController implemented in it's header file. How though, do I add a subview from a viewController class? When I try to like this:
Code:
[window addSubview:Sandbox.view];
It says obviously, 'Sandbox' undeclared. How would I about doing this? Adding a subview from a viewController class.