iOS开发-如何查看一个对象的引用计数RetainCount

161 阅读1分钟

如何查看一个对象的RetainCount:

printf("Retain Count = %ld\n",CFGetRetainCount((__bridge CFTypeRef)(obj)));