Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
The code below is a snip of how we pull data out of contacts from a btn in our application and insert into a UILabel.(just like the example in the apple documentation) Pretty straight forward. How is the same thing done to pull the phone number out? We can pull the first & last name, but not the number....I'm sure it's very similar....Can't locate the answer though. Any help would be appreciated.


NSString* name = (NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty);
self.firstName.text = name;
[name release];


Thank you.
 

PaulONeill

macrumors newbie
Mar 5, 2009
1
0
Perth, Western Australia
Hey jjgraz, check out this post I found relating to the Address Book and phone numbers:

http://www.iphonedevsdk.com/forum/i...503-retrieving-phone-number-address-book.html

Hope it helps....

The code below is a snip of how we pull data out of contacts from a btn in our application and insert into a UILabel.(just like the example in the apple documentation) Pretty straight forward. How is the same thing done to pull the phone number out? We can pull the first & last name, but not the number....I'm sure it's very similar....Can't locate the answer though. Any help would be appreciated.


NSString* name = (NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty);
self.firstName.text = name;
[name release];


Thank you.
 

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
Much appreciated. It's exactly what I'm after. Thanks again.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.