AddressBookFill is a simple application which populates your address book with contacts. This is useful when developing for the iPhone and working on the emulator.
On many occasions, I’ve spent quite a bit of time adding contacts to the emulator to test something. Then when I change emulator version, they all get erased. This is very frustrating. So I put together this simple application which allow you to programatically fill up your address book.
Currenly the address book is populated with U.S. Presidents. Values are set for:
* first name
* last name
* photo
* phone number
* birthday
I’ll make it more robust in the future. But you may find this useful for now. The code might also be interesting if you’re learning how to program the address book.
Download: addressbookfill-10.tar
Tags: ABAddressBookRef, ABAddressBookSave, ABMultiValueAddValueAndLabel, ABMutableMultiValueRef, ABRecordRef, ABRecordSetValue, apple, Code, iPhone, Mac
If you like this post and would like to receive updates from this blog, please subscribe our feed.
June 22nd, 2009 at 6:23 pm
Download link is broken?
June 22nd, 2009 at 6:39 pm
The link has been fixed.
July 30th, 2009 at 12:56 am
Great Example, but your refer to upload.php. Where is the source for upload.php. I have tried several examples of php script, but none work. can you send me or post the PHP script you used in you example.
Thanks
Bill B