O'Reilly logo

RubyMotion iOS Development Essentials by Abhishek Nalwaya, Akshat Paul

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Address Book – manage your contacts

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:

  1. Let's first create a sample address book application with our favorite motion command:
    $motion create AddressBook_example
    
  2. Next, let's create a controller named addressbook_controller.rb and replace the following code in app_delegate.rb ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required