NSString is exactly the same as CFString?

丶灬走出姿态 提交于 2019-12-21 09:39:10

问题


O'Reilly's Programming iOS 5 says (maybe in a looser sense), that "an NSString is a CFString". But is it true that at least NSString * will point to some memory chunk with an isa, while CFStringRef probably does not?


回答1:


Not exactly the same; they are Toll-Free Bridged. This Apple Doc should explain in more detail.

Here is even more detail from iOS 5 Programming Pushing The Limits on Google Books.



来源:https://stackoverflow.com/questions/12641189/nsstring-is-exactly-the-same-as-cfstring

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!