DAAppsViewController icon indicating copy to clipboard operation
DAAppsViewController copied to clipboard

Bundle problem when using with cocoapods and useframeworks

Open stsandro opened this issue 9 years ago • 0 comments

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.

stsandro avatar Oct 07 '15 18:10 stsandro