ios retainCount

retainCount

 

Important: Typically there should be no reason to explicitly ask an object what its retain count is (see retainCount). The result is often misleading, as you may be unaware of what framework objects have retained an object in which you are interested. In debugging memory management issues, you should be concerned only with ensuring that your code adheres to the ownership rules.

原文地址:https://www.cnblogs.com/lpwlpw/p/4751798.html