How to get phonenumbers from iphone addressbook?

Discussion in 'iOS Development' started by stivi, Oct 1, 2008.

  1. stivi

    stivi New Member

    Joined:
    Sep 30, 2008
    Messages:
    3
    Likes Received:
    0
    Hi there,

    I have a textfield and a button in my application. I want to show the native addressbook if i touch the button to choose a phonenumber which will be shown in the textfield afterwards.

    How can I do this? I heards something about "PeoplePicker-class" but I have no clue how to use this.

    Could somebody please help me with some code snippets?

    Many thanks..
  2. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55

    Look in the AddressBookUI framework headers for "ABPeoplePickerNavigationController", which is a UINavigationController. You should be able to figure out what to do from there

    Please Register or Log in to view images

Share This Page