ios - How to fetch Birthday Label from CNContactPickerViewController in objective-c? -


i know in swift how pick birthday label cncontactpickerviewcontroller, little bit confuse in objective-c

here use code like:in objective-c

how can pick birthday label in "didselectcontactproperty" method. can please me out..

-(void)presentcontacts {     cncontactpickerviewcontroller *picker = [[cncontactpickerviewcontroller alloc] init];     nsarray *propertykeys = @[cncontactbirthdaykey, cncontactphonenumberskey, cncontactgivennamekey, cncontactfamilynamekey, cncontactorganizationnamekey];     nspredicate *enablepredicate = [nspredicate predicatewithformat:@"birthday != nil"];      picker.displayedpropertykeys = propertykeys;     picker.predicateforenablingcontact = enablepredicate;     picker.delegate = self;      [self presentviewcontroller:picker animated:yes completion:nil]; }  - (void)contactpickerdidcancel: (cncontactpickerviewcontroller *) picker {     nslog(@"didcancel"); }  - (void)contactpicker: (cncontactpickerviewcontroller *) picker didselectcontact: (cncontact *)contact{         nslog(@"didselectcontact"); }  - (void)contactpicker: (cncontactpickerviewcontroller *) picker didselectcontactproperty: (cncontactproperty *)contactproperty{      nslog(@"didselectproperty"); } 


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -