Is there a way to fetch the current reference count for an NSObject (i.e. NSString)?
using CFGetRetainCount function
CFGetRetainCount
Example :
print(CFGetRetainCount(object))
Read more here.