Skip to content

Commit 9680c34

Browse files
committed
Menu image not found in case library loaded as framework (use_frameworks! in Podfile)
1 parent 2ddf700 commit 9680c34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SlideMenu/Source/SlideNavigationController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ - (UIBarButtonItem *)barButtonItemForMenu:(Menu)menu
445445
}
446446
else
447447
{
448-
UIImage *image = [UIImage imageNamed:MENU_IMAGE];
448+
NSBundle* bundle = [NSBundle bundleForClass:[SlideNavigationController class]];
449+
UIImage *image = [UIImage imageNamed:MENU_IMAGE inBundle:bundle compatibleWithTraitCollection:nil];
449450
return [[UIBarButtonItem alloc] initWithImage:image style:UIBarButtonItemStylePlain target:self action:selector];
450451
}
451452
}

0 commit comments

Comments
 (0)