how to display CFStringType? Like kABHomeLabel

Posted by xiaozi on Stack Overflow See other posts from Stack Overflow or by xiaozi
Published on 2010-04-03T10:32:37Z Indexed on 2010/04/03 10:33 UTC
Read the original article Hit count: 194

Filed under:

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!

© Stack Overflow or respective owner

Related posts about iphone