ok i know what this means but i have exhausted myself trying to find where the error is at. I have an app that displays a login page. a proper login loads a view where a task is picked from the uipicker. I can then load another view based on that . Right now i am loading my SearchViewController and if i have nothing connected it loads but once i connect my UITextField i get:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ActionsViewController 0x192090> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key tagNum.'
I cant seem to find where the break is. NOw i did reuse the code to load the last view.
Do i need to have a view controller declared for every single view i want to load. My app will have a little over a dozen xib files so that seems a bit over kill
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ActionsViewController 0x192090> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key tagNum.'
I cant seem to find where the break is. NOw i did reuse the code to load the last view.
Code:
- (void) fliptoactions{
ActionsViewController *aSecondView = [[ActionsViewController alloc] initWithNibName:@"ActionsViewController" bundle:nil];
[self setActionsViewController:aSecondView];
[aSecondView release];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.0];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:window cache:YES];
[mainViewController.view removeFromSuperview];
[self.window addSubview:[actionsViewController view]];
[UIView commitAnimations];
}
- (void) fliptosearch{
ActionsViewController *aSecondView = [[ActionsViewController alloc] initWithNibName:@"SearchViewController" bundle:nil];
[self setActionsViewController:aSecondView];
[aSecondView release];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.0];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:window cache:YES];
[mainViewController.view removeFromSuperview];
[self.window addSubview:[actionsViewController view]];
[UIView commitAnimations];
}
Code:
- (IBAction)doAction:(id)sender {
ivTechAppDelegate *mainDelegate = (ivTechAppDelegate *)[[UIApplication sharedApplication] delegate];
if([pickedAction isEqualToString:@"Search Computers"])
{
[mainDelegate fliptosearch];
}
}
Do i need to have a view controller declared for every single view i want to load. My app will have a little over a dozen xib files so that seems a bit over kill