NSArray *arr1 = [[NSArray alloc]initWithObjects:@"0",@"5",nil]; NSData *data = [NSKeyedArchiver archivedDataWithRootObject:arr1]; NSArray *arr2 = [NSKeyedUnarchiver unarchiveObjectWithData:data]; NSLog(@"->%@",[arr1 objectAtIndex:1]); NSLog(@"->%@",[arr2 objectAtIndex:1]);