I'm building this simple app (soon to be complex) and it's a Tab Bar app, 3 sections, and I'm having a simple button that pops up an alert. Really simple.
I put up all of the code and linked in my methods within IB, and I've set everything, instances, variables, everything, and yet I receive this error:
Thread 1: Program received signal SIGABRT
Here's my code for the header file for my third view:
And here's for the implementation file:
SIGABRT means something fatal has happened & it has to abort, right? And it (of course) only happens when I activate the alertMe method (click the button). Am I using outdated code or something? B/c I'm currently learning off of Lynda.com's 3.0 SDK tutorials.
Much appreciated,
Hunter
BTW, here's the entire source code folder, JIC:
http://www.huntereisler.com/xcodeproj/TabBar
If you can't get the zip file (my cpanel isn't working right) PM me or email me at heisler98@gmail.com
I put up all of the code and linked in my methods within IB, and I've set everything, instances, variables, everything, and yet I receive this error:
Thread 1: Program received signal SIGABRT
Here's my code for the header file for my third view:
Code:
@interface ThirdViewController : UIViewController {
IBOutlet UIButton *alertButton;
}
@property (nonatomic, retain) IBOutlet UIButton *alertButton;
// public methods for implementation (in case: hitting button)
-(IBAction) alertMe;
@end
And here's for the implementation file:
Code:
@implementation ThirdViewController
@synthesize alertButton;
-(IBAction) alertMe {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Alert from Console" message:@"Your button action has been received" delegate:nil cancelButtonTitle:@"Send Confirm" otherButtonTitles:nil];
[alert show];
[alert release];
}
SIGABRT means something fatal has happened & it has to abort, right? And it (of course) only happens when I activate the alertMe method (click the button). Am I using outdated code or something? B/c I'm currently learning off of Lynda.com's 3.0 SDK tutorials.
Much appreciated,
Hunter
BTW, here's the entire source code folder, JIC:
http://www.huntereisler.com/xcodeproj/TabBar
If you can't get the zip file (my cpanel isn't working right) PM me or email me at heisler98@gmail.com