Skip to content

Commit 481b83c

Browse files
authored
Merge pull request #208 from mark2b/master
Menu image not found in case library loaded as framework (use_framewo…
2 parents 2ddf700 + 3d1d7ae commit 481b83c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SlideMenu/Source/SlideNavigationController.m

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

0 commit comments

Comments
 (0)