We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b549f11 + a674614 commit 7b0477bCopy full SHA for 7b0477b
1 file changed
GCDWebUploader/GCDWebUploader.m
@@ -296,7 +296,7 @@ @implementation GCDWebUploader
296
297
- (instancetype)initWithUploadDirectory:(NSString*)path {
298
if ((self = [super init])) {
299
- NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"GCDWebUploader" ofType:@"bundle"]];
+ NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[GCDWebUploader class]] pathForResource:@"GCDWebUploader" ofType:@"bundle"]];
300
if (siteBundle == nil) {
301
return nil;
302
}
0 commit comments