基本法则: You own any object you create You create an object using a method whose name begins with “alloc”, “new”, “copy”, or “mutableCopy” (for example, alloc, newObject, or mutableCopy). 你用alloc, new, copy或者mutableCopy消息创建出来的对象,所有权归你。 You can take ownership of an object using retain A received object is normally guaranteed to remain valid within the method it was received in, and… Continue reading Memory Management in Objective-C