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;