Get a random name and number (same contact) from an iPhone users address book

Posted by Sam Jarman on Stack Overflow See other posts from Stack Overflow or by Sam Jarman
Published on 2010-06-06T05:08:49Z Indexed on 2010/06/06 5:12 UTC
Read the original article Hit count: 239

Filed under:
|

Hi there,

I have had only very little experience using the address book in the iPhone SDK.

Does anyone have a code snippet or knows the code to get a persons name and number Eg 'Fred Smith - 027 292 2112". I haven't had much luck with the stuff I've tried.

I want to achieve this programmatically, and not let the user decide (random pick of the person). I also don't want to display the contact picker either

any tutorial links, or anything would be appreciated.

Thanks in advance

Sam

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0

Related posts about addressbook