摘要:
Block keeps a strong point to all object referenced in side of them, so all object will stay in heap as long as block dose,and when a object inside also has a strong point to the block, memory cycle happens. 阅读全文
摘要:
Class method can't refer derectly to instance variables. Within the body of a class method, self refers to the class object itself. For example:@interface Myclass : NSObject + (id)classMethod;@endImplementation of the classMethod like this, let's call it method_A:+ (id)classMethod{ return [[ 阅读全文