Skip to content

Commit a7c0cc0

Browse files
author
jrapoport
committed
keyed image bugfix
needs to pass imgName not key
1 parent 4762a9d commit a7c0cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AWLThemeManager/AWLThemeManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ - (UIImage *)imageNamed:(NSString *)key forTheme:(NSString*)themeName
139139
NSBundle* bundle = [NSBundle bundleWithPath:self.themeList[themeName]];
140140

141141
if (NSFoundationVersionNumber >= NSFoundationVersionNumber_iOS_8_0) {
142-
img = [UIImage imageNamed:key inBundle:bundle compatibleWithTraitCollection:nil];
142+
img = [UIImage imageNamed:imgName inBundle:bundle compatibleWithTraitCollection:nil];
143143
}
144144
#ifdef AWLThemeManager_XCASSETS_iOS7
145145
else {

0 commit comments

Comments
 (0)