Ray's playground

 

2011年10月31日

Memory Management(Chapter 3 of iOS Programming: The Big Nerd Ranch Guide)

摘要: If you create an object using a method whose name starts with alloc or new or contains copy, thenyou have taken ownership of it. (That is, assume that the new object has a retain count of 1 and isnot in the autorelease pool.) You have a responsibility to release the object when you no longer needit. 阅读全文

posted @ 2011-10-31 17:54 Ray Z 阅读(284) 评论(0) 推荐(0) 编辑

导航