Skip to content

Commit

Permalink
#95 Fix bundle path error if the pod use frameworks.
Browse files Browse the repository at this point in the history
  • Loading branch information
1and2papa committed Mar 17, 2015
1 parent 621b1fe commit ab20f5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CTAssetsPickerController/NSBundle+CTAssetsPickerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import "NSBundle+CTAssetsPickerController.h"
#import "CTAssetsPickerController.h"

@implementation NSBundle (CTAssetsPickerController)

Expand All @@ -17,7 +18,8 @@ + (NSBundle *)ctassetsPickerControllerBundle

+ (NSString *)ctassetsPickerControllerBundlePath
{
return [[NSBundle mainBundle] pathForResource:@"CTAssetsPickerController" ofType:@"bundle"];
return [[NSBundle bundleForClass:[CTAssetsPickerController class]]
pathForResource:@"CTAssetsPickerController" ofType:@"bundle"];
}

@end

0 comments on commit ab20f5a

Please sign in to comment.