Xcode 7 中的打印描述给出了类似于下面的内存地址。尝试了所有选项,但得到这样的输出。
▿ 3 elements
▿ [0] : 2 elements
- .0 : Output
▿ .1 : 3 elements
▿ [0] : 2 elements
- .0 : type
- .1 : Output2 { ... }
▿ [1] : 2 elements
- .0 : version
- .1 : 1.0
▿ [2] : 2 elements
- .0 : content
▿ .1 : 2 elements
我怎样才能打印字典的确切值?
尝试用CFShow https://developer.apple.com/library/prerelease/ios/documentation/CoreFoundation/Reference/CFTypeRef/index.html#//apple_ref/c/func/CFShow:
将 Core Foundation 对象的描述打印到 stderr。
po CFShow(dict)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)