This is my first post and I'm pretty new to this stuff but here is my question and I hope you can help :)
So I made a game screen and now want to add a Main Menu to the beginning. So I added a new View Controller Subclass and now have an IBAction that is from a button that will load the game screen.
#import <UIKit/UIKit.h>
@interface MainMenuViewController : UIViewController{
IBOutlet UIButton *classicMode;
IBOutlet UIButton *timedMode;
}
@property (nonatomic, retain) IBOutlet UIButton *classicMode;
@property (nonatomic, retain) IBOutlet UIButton *timedMode;
- (IBAction) classicModeButton:(id) sender;
- (IBAction) timedModeButton:(id) sender;
@end
So now I went into my .m and set the IBAction
- (IBAction) classicModeButton:(id)sender{
}
But I've tried using initWithNibName and specifying my other view controller xib, and it runs with no errors, but when I tap the button I have linked in IB it always crashes and says that it received the signal SIGABRT. Any help would be greatly appreciated. :)