Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 04-04-2010, 09:19 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 1
kenchua1976 is on a distinguished road
Default iPhone Delete Groups in Address Book

I have a weird problem not sure how to go about this.
I am trying to delete an empty group... All the codes execute correctly but the
group could not be deleted. After i quit the app. using contacts, the group is still there.

Hope that any one can point me in the correct direction.

ABRecordRef group = ABGroupCreate();
ABAddressBookRef addressBook = ABAddressBookCreate();
ABRecordSetValue(group, kABGroupNameProperty,GroupNameToDelete, NULL);

ABAddressBookRemoveRecord(addressBook, group, NULL);

ABAddressBookSave(addressBook, NULL);
kenchua1976 is offline   Reply With Quote
Old 08-15-2011, 12:20 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: Baton Rouge, LA
Posts: 131
j3rm is on a distinguished road
Default this works for me

CFErrorRef err = nil;
ABAddressBookRemoveRecord(ab, group, &err);
ABAddressBookSave(ab, &err);
j3rm is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 360
7 members and 353 guests
.Snipe, baja_yu, BSH, givensur, guusleijsten, NSString, Paul Slocum
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,645
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, leighec68
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:28 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0