Commit 49a6ae65 authored by huanglu's avatar huanglu

update

parent 1659e66b
...@@ -74,7 +74,7 @@ NSBundle *YBIBDefaultBundle(void) { ...@@ -74,7 +74,7 @@ NSBundle *YBIBDefaultBundle(void) {
static dispatch_once_t onceToken; static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{ dispatch_once(&onceToken, ^{
NSBundle *_bundle = [NSBundle bundleForClass:NSClassFromString(@"YBImageBrowser")]; NSBundle *_bundle = [NSBundle bundleForClass:NSClassFromString(@"YBImageBrowser")];
NSString *path = [_bundle pathForResource:@"YBImageBrowser" ofType:@"bundle"]; NSString *path = [_bundle pathForResource:@"YBImageBrowser.bundle/YBImageBrowser" ofType:@"bundle"];
bundle = [NSBundle bundleWithPath:path]; bundle = [NSBundle bundleWithPath:path];
}); });
return bundle; return bundle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment