Bug fix:Collection <__NSArrayM: > was mutated while being enumerated
This commit is contained in:
parent
6698910fe1
commit
dad2a9254b
|
@ -248,7 +248,8 @@ BOOL ImageDataHasPNGPreffix(NSData *data) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (NSString *path in self.customPaths) {
|
NSArray *customPaths = [self.customPaths copy];
|
||||||
|
for (NSString *path in customPaths) {
|
||||||
NSString *filePath = [self cachePathForKey:key inPath:path];
|
NSString *filePath = [self cachePathForKey:key inPath:path];
|
||||||
NSData *imageData = [NSData dataWithContentsOfFile:filePath];
|
NSData *imageData = [NSData dataWithContentsOfFile:filePath];
|
||||||
if (imageData) {
|
if (imageData) {
|
||||||
|
|
Loading…
Reference in New Issue