This is my first interface using a button to call another xib interface
-(IBAction)poli
UIViewController *ll = [[UIViewController alloc] initWithNibName:@"ViewController" bundle:nil];
[self presentModalViewController:ll animated:YES];
and second interface calling the previous one ….
-(IBAction)popaa
UIViewController *ui = [[UIViewController alloc] initWithNibName:@"Ra" bundle:nil];
[self presentModalViewController:ui animated:YES];
but there occurs a problem that shows
terminating app due to uncaught exception ‘NSUnknownKeyException‘, reason: [<UIViewController 0x7433230> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key pol
could someone explain the problem, i just want the first xib to show the second and second to show the first xib via a button.
Check if your xibs has any warning. Usually
setValue:forUndefinedKey:is thrown when you have added some view in xib but the same is not added to your class code or the outlet is not defined properly. In this case you have added some viewpolto your xib but the same is not present in yourlloruiclass.Also your dismiss method should be,