Merge branch 'develop' of gitlab.verizon.com:BPHV_MIPS/mvm_core into develop
This commit is contained in:
commit
3525139f7a
@ -380,13 +380,15 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt";
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (nullable UIImage *)getImageFromRegisteredBundles:(nonnull NSString *)imageName {
|
- (nullable UIImage *)getImageFromRegisteredBundles:(nonnull NSString *)imageName {
|
||||||
UIImage *image = nil;
|
__block UIImage *image = nil;
|
||||||
for (NSBundle *bundle in self.imageBundles) {
|
dispatch_barrier_sync(self.imageCacheQueue, ^{
|
||||||
image = [UIImage imageNamed:imageName inBundle:bundle compatibleWithTraitCollection:nil];
|
for (NSBundle *bundle in self.imageBundles) {
|
||||||
if (image) {
|
image = [UIImage imageNamed:imageName inBundle:bundle compatibleWithTraitCollection:nil];
|
||||||
break;
|
if (image) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user