SO i have this
- (void)loadView { BOOL success; NSFileManager *fileManager = [NSFileManager defaultManager]; NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString* databasePath = [documentsPath stringByAppendingPathComponent:@"ProxDeals.db"]; NSError *error;  BOOL fileExists = [[NSFileManager defaultManager] fileExistsAtPath:databasePath]; if (fileExists==TRUE) {     [[NSBundle mainBundle] loadNibNamed:@"ProxDealsViewController" owner:self options:nil]; } else {     NSString *defaultDBPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"ProxDeals.db"];     NSLog(@"%@",defaultDBPath);     success = [fileManager copyItemAtPath:defaultDBPath toPath:databasePath error:&error];     if (!success) {         NSAssert1(0, @"Failed to create writable database file with message '%@/.", [error localizedDescription]);     }     [[NSBundle mainBundle] loadNibNamed:@"UserRegistration" owner:self options:nil]; }   }
and this error:
 Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ProxDealsViewController 0x5f22160> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key givenName.'   I know that i don't do something wright in the initialization of the UserRegistration nib but i don't know how to fix this.
This usually means that something is trying to access the @property "givenName".
If you were doing something with IB, the usual cause is that you either:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With