how to retrieve the data from the contact book

Discussion in 'iOS Programming' started by adilaladil, Dec 20, 2012.

  1. adilaladil, Dec 20, 2012
    Last edited by a moderator: Dec 21, 2012

    adilaladil macrumors newbie

    Joined:
    Dec 8, 2012
    Location:
    ksa -Al Qunfudhah
    #1
    Hi Dear

    Where is the fault?

    xcode 4.5
    ios 5.0
    ios 6


    First add :
    add the following items in :
    Code:
    AddressBook.framework and AddressBookUI.framework
    
    Second:ViewController.h

    Code:
    #import <AddressBook/AddressBook.h>
    #import <AddressBookUI/AddressBookUI.h>
    
    @interface UIViewController : UIViewController  {
     
     IBOutlet UILabel *firstName;
     IBOutlet UILabel *lastName;
     IBOutlet UILabel *number;
    }
    
    -(IBAction)getContact;
    
    @end
    
    Third : storyboart

    3 text field
    1 button
    3 label

    [​IMG]

    /////This picture was taken from the site/////To clarify///


    fourth :
    Connecting elements

    1 text field >>>>>>firstName
    2 text field>>>>>>lastName
    3 text field>>>>>>number
    }

    button >>>>>> getContact



    What then?

    Please help me
     
  2. adilaladil thread starter macrumors newbie

    Joined:
    Dec 8, 2012
    Location:
    ksa -Al Qunfudhah

Share This Page