cncontact - CNContactstore - Label of a phone number returning null in iOS 9.3.4 and 9.3.5 -


i have weird problem , hope apple's bug. let me know if apple bug.

steps

  • open dialer
  • dial number , add contacts using + sign number1
  • open contacts , add number2 contacts using contacts app

now below code returns

    (cnlabeledvalue *labelobj in contact.phonenumbers) {     phone = [labelobj.value stringvalue];     cnlabeledvalue *cnphonelabel = [cnlabeledvalue labeledvaluewithlabel:labelobj.label value:labelobj.value];     nsstring *phonelabelstring = [[cnlabeledvalue localizedstringforlabel:cnphonelabel.label] capitalizedstring];     } 

number1

    "<cnlabeledvalue: 0x148306800:  identifier=08c1a708-f5a2-4a65-ab08-024b3fcf79c4, label=(null),  value=<cnphonenumber: 0x148297aa0: countrycode=in, digits=2586352952356>>" 

number2

"<cnlabeledvalue: 0x148296a60: identifier=7d9abc9e-d5af-421d-bff6-7902bc99e80f, label=_$!<mobile>!$_, value=<cnphonenumber: 0x148296aa0: countrycode=in, digits=7392>>" 

number1 label returns label null

nlabeledvalue: 0x148306800: identifier=08c1a708-f5a2-4a65-ab08-024b3fcf79c4, label=(null)


Comments