nek023 / QBImagePicker

A clone of UIImagePickerController with multiple selection support.
MIT License
1.78k stars 552 forks source link

Can't find the bundle resource after inheritance #186

Open winterwd opened 7 years ago

winterwd commented 7 years ago

// original code self.assetBundle = [NSBundle bundleForClass:[self class]];

If my VC inherited from QBImagePickerController, "[self class]" is actually get my own VC class, so it couldn't find the author's own bundle, if use "NSClassFromString (@ "QBImagePickerController")" this way for get a class, maybe solve this problem.

// fixed code self.assetBundle = [NSBundle bundleForClass:NSClassFromString(@"QBImagePickerController")];

What are my own opinion, if not considering the, still hope pointed out!