Address Book for iOS provides a way to store the contact information and other personal information of people in a centralized database that can then be shared between various applications. In this section, we will perform basic operations related to the Address Book.
We will perform the following operations in this section:
Access the device's Address Book
Choose a desired user
Copy data from the Address Book into our application
Perform the following steps to work with an Address Book:
Let's first create a sample address book application with our favorite
motion
command:$motion create AddressBook_example
Next, let's create a controller named
addressbook_controller.rb
and replace the following code inapp_delegate.rb
so that our delegate points to our address book controller:class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @window.rootViewController...