-(void) addFakeContacts{
ABAddressBookRef addressBook = ABAddressBookCreate();
for (int i = 201; i < 400; i++)
{
ABRecordRef record = ABPersonCreate();
ABMutableMultiValueRef multi = ABMultiValueCreateMutable(kABStringPropertyType);
NSString *email = [NSString stringWithFormat:@"%i@%ifoo.com", i, i];
ABMultiValueAddValueAndLabel(multi, (__bridge CFTypeRef)(email), kABHomeLabel, NULL);
NSString *fname = [NSString stringWithFormat:@"Name %i", i];
NSString *lname = [NSString stringWithFormat:@"Last %i", i];
ABRecordSetValue(record, kABPersonFirstNameProperty, (__bridge CFTypeRef)(fname), NULL);
ABRecordSetValue(record, kABPersonLastNameProperty, (__bridge CFTypeRef)(lname), NULL);
ABRecordSetValue(record, kABPersonEmailProperty, multi, NULL);
ABAddressBookAddRecord(addressBook, record, NULL);
}
ABAddressBookSave(addressBook, NULL);
CFRelease(addressBook);
}