Vong
Vong
假设: `Person` 是一个 `NSManagedObject` 子类 ``` Objective-C // OC 代码 - (void)viewDidLoad { [super viewDidLoad]; NSManagedObjectContext *context = [(AppDelegate *)[UIApplication sharedApplication].delegate managedObjectContext]; Person *person = [NSEntityDescription insertNewObjectForEntityForName:@"Person" inManagedObjectContext:context]; person.name =...
Current cache size calculates everytime when `cacheImage: URL:` calls,which will cause unnecessary traverse.When collectionView or tableview scroll fast,this will be somehow bottleneck. So store the cost in every node may...
If the memory warning is not trigged, the method `calcMaxBufferCount` only called in `imageChanged`. Imagine this situation: ```objc YYFrameImage *images = [[YYFrameImage alloc] initWithImagePaths:imagePaths oneFrameDuration:0.05 loopCount:10]; // 1 YYAnimatedImageView *indefiniteAnimatedView...
Imagine this scenario: I have some imageViews that init with the same frame image( instance of YYFrameImage),and add them to some view simultaneously.Apparently,the more imageViews,the slower animations,because of high CPU...