I am new to iPhone App development.
I got this error when I run my project
Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[<AboutViewController 0x91cc1d0> setValue:forUndefinedKey:]:
It happens when I try to navigate to another view controller called AboutViewController
.
I defined the rightBarButton
like this
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"About" style:UIBarButtonItemStylePlain target:self :@selector(showAbout)];
self.navigationItem.rightBarButtonItem = anotherButton;
The method showAbout
is
- (void)showAbout{
AboutViewController *abvController = [[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil];
[self.navigationController pushViewController:abvController animated:YES];
[abvController release];
}
Also when I try to use presentModelViewController
instead of navigationController
, the compiler shows it is deprecated.