Commit f5ef3a6f authored by huanglu's avatar huanglu

bundle

parent 8fb94292
......@@ -18,7 +18,7 @@ NSString *const LFMediaEditingStrings = @"LFMediaEditingController";
static NSBundle *lfMediaEditingBundle = nil;
if (lfMediaEditingBundle == nil) {
// 这里不使用mainBundle是为了适配pod 1.x和0.x
lfMediaEditingBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[LFBaseEditingController class]] pathForResource:@"LFMediaEditingController" ofType:@"bundle"]];
lfMediaEditingBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[LFBaseEditingController class]] pathForResource:@"LFMediaEditingController.bundle/LFMediaEditingController" ofType:@"bundle"]];
}
return lfMediaEditingBundle;
}
......
......@@ -74,7 +74,7 @@ NSBundle *YBIBDefaultBundle(void) {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
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];
});
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