objective c - Check if Address Book contact phone number is mobile -


i can retrieve phone numbers associated contact, sharing purposes need find out number contact's mobile phone number.

the type can retrieved using following code;

abmultivalueref phonesref = abrecordcopyvalue(person, kabpersonphoneproperty);  if(phonesref) {         long count = abmultivaluegetcount(phonesref);         for(int ix = 0; ix < count; ix++){             cfstringref typetmp = abmultivaluecopylabelatindex(phonesref, ix);             cfstringref numberref = abmultivaluecopyvalueatindex(phonesref, ix);             cfstringref typeref = abaddressbookcopylocalizedlabel(typetmp);               cfstringref typeref = abaddressbookcopylocalizedlabel(typetmp);             nsstring *phonetype = (__bridge nsstring *)typeref;         } } 

however, how check if type mobile? mean sure, compare string "mobile", naturally won't work in localized environment.

is there constant can compare to?


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -