• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ABPeoplePicker Help Needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ABPeoplePicker Help Needed
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: iPhoto-like scroll view
  • Next by Date: RE: iPhoto-like scroll view
  • Previous by thread: Re: iPhoto-like scroll view
  • Next by thread: Re: ABPeoplePicker Help Needed
  • Index(es):
    • Date
    • Thread