the retainCount+1 only when he defined the property retain not assign
--------------------编程问答--------------------
如果他是assign的话也就不会问这个问题了- -
--------------------编程问答--------------------
在你buyBook的时候,book的持有者也就是retainCount +1了
the retainCount+1 only when he defined the property retain not assign
如果他是assign的话也就不会问这个问题了- -
yes ,I can tell that he absolutely used retain for modification
--------------------编程问答--------------------
这明显是弱引用,计数器虽然是0,不过有时候还是可以用的,因为还没有其它程序占用这块内存,所以你只是单纯的用指针去访问这个地址
--------------------编程问答--------------------