本文介绍了NSString 和 CFString 完全一样吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

O'Reilly's Programming iOS 5 说(也许在更宽松的意义上),NSString 是一个 CFString".但是,是否至少 NSString * 会指向某个带有 isa 的内存块,而 CFStringRef 可能不会?

解决方案

不完全一样;它们是免费桥接.这个 Apple Doc 应该更详细地解释.>

这里有关于 .

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?

解决方案

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.

这篇关于NSString 和 CFString 完全一样吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 20:01