1

I'm creating an app that needs phone numbers to be typed or selected from the contacts. I wanna know that how to do this. How to allow user to select a contact's phone number from the contacts list? (Something Like Messages App)

l0gg3r
  • 8,724
  • 3
  • 25
  • 46
hmak.me
  • 3,330
  • 1
  • 18
  • 31

2 Answers2

0

Get the contacts list using AddressBook framework in ios, and get the details you wanted from the list of contacts. Refer the answer for this question: Fetch Contacts in iOS 7

Community
  • 1
  • 1
Alex Andrews
  • 1,468
  • 2
  • 19
  • 33
0

I've just commit LGPhoneBook

You need to call

[[LGPhonebook sharedInstance] readContactsWithCallbackHandler:^(NSArray *contacts) {
      for (PhoneBookContact *contact in contacts) {
           NSLog(@"Name: %@, mobile: %@", contact.name, contact.mobile);
      }
}];
l0gg3r
  • 8,724
  • 3
  • 25
  • 46