Preamble: In pre-Swift and pre-ARC days of development on Apple’s platforms, it was necessary to “manually” retain and release objects as you used and discarded them. One common, but incorrect, pattern that kept reappearing was the idea that you could use the retainCount method to ascertain whether an object was still being used.
##
When to use -retainCount? Never!
There’s pretty much never a good reason to use -retainCount
. Here’s a short and mildly abusive explanation why.