How to convert a swift String to CFString

后端 未结 5 949
梦谈多话
梦谈多话 2020-12-30 19:34

How can i create a CFString from a native swift String or NSString in swift

    let path:String = NSBundle.mainBundle().pathForResource(name.stringByDeleting         


        
5条回答
  •  無奈伤痛
    2020-12-30 19:49

    Today I was trying to do this in a playground for testing a C API and just import Foundation made "string" as CFString work.

提交回复
热议问题