views:

60

answers:

1

Hi, everyone,

I want to ask about the address book framework on iPhone application. I have import the framework and .h in my class. However, I don't know how to retrieve all of the First name and last name in the address book and store it in the NSMutableArray. what is the problems in my code? Thank you very much.

NSArray *displayedItems = [NSArray arrayWithObjects:[NSNumber numberWithInt:kABPersonFirstNameProperty], [NSNumber numberWithInt:kABPersonLastNameProperty ], nil];