Tri*_*tmm 34
使用CFGetRetainCount功能
示例:
print(CFGetRetainCount(object))
Run Code Online (Sandbox Code Playgroud)
在这里阅读更多内容:https://developer.apple.com/reference/corefoundation/1521288-cfgetretaincount
希望有帮助
通常,您会使用工具来获取保留计数。但正如这里回答的,方法是retainCount。