Currently we are able to fetch all the contacts in the addressbook using ABAddressBookCopyArrayOfAllPeople which returns an Array of contact objects. If we have a huge number of contacts on the phone then the memory being allocated to the array will be significant. To avoid heavy memory consumption, we would like to fetch one contact at a time from the addressbook by programmatically accessing the database directly.
Provision for this is available using either RecordID or PeopleName. Without the array of contact objects we could not obtain either as we want to avoid using the array in the first place.
Is there any method to fetch one contact from the addressbook database instead and move the cursor to the next contact and fetch the next contact ? Android has a provision for doing this and we were hoping there was a similar method in iOS ?