From 47b6240e430282f0a0358b7034b35792cdfaad52 Mon Sep 17 00:00:00 2001 From: Brian Capps Date: Thu, 7 Jan 2016 16:39:51 -0500 Subject: [PATCH] Fixes the image issue by using `bundleForClass:` --- Pod/Classes/ios/Resource Loading/NSBundle+NYTPhotoViewer.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Pod/Classes/ios/Resource Loading/NSBundle+NYTPhotoViewer.m b/Pod/Classes/ios/Resource Loading/NSBundle+NYTPhotoViewer.m index f992081f..19d0c12c 100644 --- a/Pod/Classes/ios/Resource Loading/NSBundle+NYTPhotoViewer.m +++ b/Pod/Classes/ios/Resource Loading/NSBundle+NYTPhotoViewer.m @@ -7,6 +7,7 @@ // #import "NSBundle+NYTPhotoViewer.h" +#import "NYTPhotosViewController.h" @implementation NSBundle (NYTPhotoViewer) @@ -14,7 +15,7 @@ + (instancetype)nyt_photoViewerResourceBundle { static NSBundle *resourceBundle = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ - NSString *resourceBundlePath = [[NSBundle mainBundle] pathForResource:@"NYTPhotoViewer" ofType:@"bundle"]; + NSString *resourceBundlePath = [[NSBundle bundleForClass:[NYTPhotosViewController class]] pathForResource:@"NYTPhotoViewer" ofType:@"bundle"]; resourceBundle = [self bundleWithPath:resourceBundlePath]; }); return resourceBundle;