Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
refs #580: properly find CocoaPods-based resource bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed Apr 13, 2015
1 parent d57f116 commit 84b1c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MapView/Map/RMMapView.m
Expand Up @@ -456,9 +456,9 @@ + (UIImage *)resourceImageNamed:(NSString *)imageName

+ (NSString *)pathForBundleResourceNamed:(NSString *)name ofType:(NSString *)extension
{
NSAssert([[NSBundle mainBundle] pathForResource:@"Mapbox" ofType:@"bundle"], @"Resource bundle not found in application.");
NSAssert([[NSBundle bundleForClass:[self class]] pathForResource:@"Mapbox" ofType:@"bundle"], @"Resource bundle not found in application.");

NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"Mapbox" ofType:@"bundle"];
NSString *bundlePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"Mapbox" ofType:@"bundle"];
NSBundle *resourcesBundle = [NSBundle bundleWithPath:bundlePath];

return [resourcesBundle pathForResource:name ofType:extension];
Expand Down

0 comments on commit 84b1c0d

Please sign in to comment.