views:

72

answers:

2

Newbie at coca touch/xcode and the iPhone. Within the "Quick Start" tutorial, I would like to extract the StreetKey.

+1  A: 

kABPersonAddressStreetKey is the name of a property of an ABPerson object. So, the first step is to find the ABPerson object for the person you're looking for. To do that, query the Address Book.

The next step is to get the person's value for the kABPersonAddressStreetKey property. You probably looked in the ABPerson documentation already and didn't find anything. Remember to look in superclasses. In this case, all Persons are Records, and to get the value of a record's property, you use the ABRecordCopyValue function. (“Copy?”, you say? Remember the Core Foundation memory management rules.)

The application opens but closes out just as fast.

Sounds like your app crashed. That has nothing to do with this question; you should ask a separate question about it, preferably after reading the Xcode Debugging Guide and using that knowledge to investigate the crash yourself.

Peter Hosey
A: 

Great thanks. I'll look into it.

Frank