DAAppsViewController
DAAppsViewController copied to clipboard
Bundle problem when using with cocoapods and useframeworks
When using this library with cocoapods and enabling use_framewors! the bundled resources can't be accessed. This leads to a crash in the DAAppViewCell (line 58) since it's trying to insert nil.
I think the following code:
UIImage *starsImageSheet = [UIImage imageNamed:@"DAAppsViewController.bundle/DAStarsImage"];
has to be changed to something like:
NSBundle *bundle = [NSBundle bundleForClass@"DAAppsViewController"];
// and then use something like
UIImage *starsImageSheet = [UIImage imageNamed:@"DAStarsImage"e inBundle:bundle compatibleWithTraitCollection:nil];
The Problem is described here.