Skip to content

Commit

Permalink
Fixed #209
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTruba committed Jun 26, 2015
1 parent b1b9f3c commit 2956d98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk/Source/VKBundle.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ + (NSBundle *)vkLibraryResourcesBundle {
static dispatch_once_t onceToken;
static NSBundle *myLibraryResourcesBundle = nil;
dispatch_once(&onceToken, ^{
NSURL *url = [[NSBundle mainBundle] URLForResource:@"VKSdkResources" withExtension:@"bundle"];
NSString *fileName = @"VKSdkResources";
NSString *ext = @"bundle";
NSURL *url = [[NSBundle mainBundle] URLForResource:fileName withExtension:ext];
if (!url) {
url = [[NSBundle bundleForClass:[self class]] URLForResource:fileName withExtension:ext];
}
if (url) {
myLibraryResourcesBundle = [NSBundle bundleWithURL:url];
}
Expand Down

0 comments on commit 2956d98

Please sign in to comment.