« first day (296 days earlier)      last day (15 days later) » 

10:58 AM
-(void)action_addInformation:(id)sender
{
NSLog(@"add person information");
@try {
NSEntityDescription *entityDescription=[NSEntityDescription entityForName:@"Person" inManagedObjectContext:context];
NSManagedObject *newPerson=[[NSManagedObject alloc]initWithEntity:entityDescription insertIntoManagedObjectContext:context];
[newPerson setValue:firstNameTxtField.text forKey:@"firstname"];
[newPerson setValue:lastNameTxtField.text forKey:@"lastname"];

NSError *error;
[context save:&error];
NSLog(@"Information added successfully");
 
1 message moved from [[iOS][Android][ChaosOverFlow]](chat.stackoverflow.com/rooms/26424/iosandroidchaosoverflow)
 

« first day (296 days earlier)      last day (15 days later) »