Hi All,
I'm new to the iphone sdk. And having some problems debugging this error:
Console Output
What i'm trying to achieve is to retrieve a modal view thru the use of a button.
I have created and connected the nib files. When ever I connect the showDefaultButton I get the previous mentioned error. Even when i'm specifying the class that I created to handle this event on the class identity.
I'm new to the iphone sdk. And having some problems debugging this error:
Console Output
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x5f21600> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key showDefaultButton.'
***
What i'm trying to achieve is to retrieve a modal view thru the use of a button.
Code:
header File
#import <UIKit/UIKit.h>
@interface DashBoardViewController : UIViewController {
UIButton *showDefaultButton;
}
@property (nonatomic, retain) IBOutlet UIButton *showDefaultButton;
- (IBAction)showDefault:(id)sender;
Code:
#import "DashBoardViewController.h"
#import "TutorialViewController.h"
@implementation DashBoardViewController
@synthesize showDefaultButton;
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (IBAction)showDefault:(id)sender {
TutorialViewController *tutorialView = [[TutorialViewController alloc] init];
[self presentModalViewController:tutorialView animated:YES];
}
- (void)dealloc {
[TutorialViewController release];
[showDefaultButton release];
[super dealloc];
}
@end
I have created and connected the nib files. When ever I connect the showDefaultButton I get the previous mentioned error. Even when i'm specifying the class that I created to handle this event on the class identity.