ABUIGroups

ReadMe.txt

ABUIGroups shows how to check and request access to a user’s address book database. It also demonstrates how to retrieve, add, and remove group records from the address book database using AddressBook APIs. It displays groups organized by their source in the address book. This sample also shows how to retrieve the name of a group and of a source.

Build Requirements:

iOS SDK 6.0 or later

Runtime Requirements:

iOS 6.0 or later

Using the Sample

The application displays a list of groups organized by sources in the address book. It first prompts a user for access to their address book database. It displays existing groups and the Add and Edit buttons if the user has granted access. Tap the Add button to add a group to the default source in the address book. Tap the Edit button to delete a group from a source.

Packaging List

ABUIGroupsAppDelegate

The application's delegate to setup its window and content.

GroupViewController

A view controller for managing access to the address book. It is also used to display, add, and remove groups from the address book.

AddGroupViewController

A view controller that lets the user enter a name for a new group.

MySource

A simple class to represent a source.

CHANGES FROM PREVIOUS VERSIONS:

1.1 - Updated for iOS 6.0. Now uses ARC and storyboard. Shows how to check and request access to a user’s address book database.