美文网首页
IOS CFStringRef和NSString之间的转换

IOS CFStringRef和NSString之间的转换

作者: zuolingfeng | 来源:发表于2015-08-06 16:52 被阅读4953次

    找了半天,没有找到,结果在stackoverflow网站找到.

    很简单:

    Typically NSString *yourFriendlyNSString = (__bridge NSString *)yourFriendlyCFString;
    

    and

    CFStringRef yourFriendlyCFString = (__bridge CFStringRef)yourFriendlyNSString;
    

    引自:http://stackoverflow.com/questions/17227348/nsstring-to-cfstringref-and-cfstringref-to-nsstring-in-arc

    相关文章

      网友评论

          本文标题:IOS CFStringRef和NSString之间的转换

          本文链接:https://www.haomeiwen.com/subject/yyhbqttx.html