ABPeoplePicker Help Needed
ABPeoplePicker Help Needed
- Subject: ABPeoplePicker Help Needed
- From: Mark Kieling <email@hidden>
- Date: Fri, 7 Sep 2007 19:22:01 -0700
The code below seg faults with the data I pass it in array. without
calling setDisplayedProperties only contact names are sown, no email,
phone or other fields. what am I doing wrong?
- (void) pickPerson
{
struct CGRect screenRect = [UIHardware
fullScreenApplicationContentRect];
screenRect.origin.x = screenRect.origin.y = 0.0f;
// CFStringRef properties[] = { CFSTR( "kABEmailProperty" ) , CFSTR
( "kABPhoneProperty" ) };
CFMutableArrayRef array = CFArrayCreateMutable( NULL, 1, NULL );
CFArrayAppendValue(array, @"kABEmailProperty");
ABPeoplePicker* picker = [[ABPeoplePicker alloc] initWithFrame:
screenRect];
[picker setAllowsCancel: YES];
[picker setPrompt: @"Select a recipient"];
[picker setAllowsCancel: YES];
[picker setDelegate: self];
[picker setDisplayedProperties: array];
[m_mainView addSubview: picker];
}
Mark Kieling
Senior Program Manager
mobile 408.375.2125
office 650.603.6627
yahoo markkieling
http://www.coremobility.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden