Re: Can record ID in iOS address book database change
Re: Can record ID in iOS address book database change
- Subject: Re: Can record ID in iOS address book database change
- From: Mike Abdullah <email@hidden>
- Date: Sun, 06 May 2012 23:10:52 +0100
I believe the transition to iCloud is also effectively a sync reset, so the IDs change.
Arguably, your app needs to handle an ID going away anyway, in case the user decides to delete that contact from their address book at some point.
On 6 May 2012, at 08:28, Steve Fogel wrote:
> Hi, all...
>
> The Address Book Programming Guide for iOS says that the ABRecordID of a person record in the address book database can change, after a MobileMe sync reset or for some other reason. Is this still true for iOS 5.0?
>
> That is, if I store an ABRecordID in my app and later want to retrieve that person with the following method, will I always get the person I want?
>
> ABRecordRef ABAddressBookGetPersonWithRecordID (
> ABAddressBookRef addressBook,
> ABRecordID recordID
> );
>
> If not, this is BAD. Primary keys that can change give me heartburn.
>
> Thanks
>
> Steve
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden