how to display CFStringType? Like kABHomeLabel
- by xiaozi
I know that NSString and CFString are toll-bridge, they can convert in such a way.
CFStringRef cfStr;
NSString* anStr=(NSString*)cfStr;
however,when I convert string in such a case when dealing addressbook
NSString* homeLabel=(NSString*)kABWorkLabel;
then homeLabel is "$!!$";
the other pre-defined CFStringRef in the addressbook property is the same.
in my program,I want to get both the label and the label item's info.
NSString* label=ABMultiValueCopyLabelAtIndex(multi,i);
so how to correctly get the string of the label?
Thanks!