CFDictionaryRef 转换 NSDictionary,CFStringRef 转换 NSString

1.CFDictionaryRef 转换 NSDictionary

CFDictionaryRef    cfdic;

NSDictionary  *nsdic = (__bridge_transfer  NSDictionary*)cfdic;


2.CFStringRef 转换 NSString

CFStringRef    s;

NSString  *changeUUIDToStr = [[NSString  alloc]initWithCString:CFStringGetCStringPtr(s, 0)  

encoding:NSUTF8StringEncoding];


3.直接类型转换就可以了,比如
CFStringRef aCFString = (CFStringRef)aNSString;
NSString *aNSString = (NSString *)aCFString;

你可能感兴趣的:(CFDictionaryRef 转换 NSDictionary,CFStringRef 转换 NSString)