Skip to content

Commit d1faadb

Browse files
committed
fix resources loading
1 parent 0d59e4e commit d1faadb

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

CTAssetsPickerController.podspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Pod::Spec.new do |spec|
2020
spec.source = { :git => 'https://github.com/chiunam/CTAssetsPickerController.git', :tag => 'v3.3.2-alpha' }
2121
spec.public_header_files = 'CTAssetsPickerController/*.h'
2222
spec.source_files = 'CTAssetsPickerController/**/*.{h,m}'
23-
spec.resource_bundles = { 'CTAssetsPickerController' => ['CTAssetsPickerController/Resources/*.lproj'] }
24-
spec.resources = 'CTAssetsPickerController/Resources/CTAssetsPicker.xcassets'
23+
spec.resources = 'CTAssetsPickerController/Resources/**/*'
2524
spec.ios.frameworks = 'Photos'
2625
spec.requires_arc = true
2726
spec.dependency 'PureLayout', '~> 3.0.0'

CTAssetsPickerController/Categories/NSBundle+CTAssetsPickerController.m

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,7 @@ @implementation NSBundle (CTAssetsPickerController)
3131

3232
+ (NSBundle *)ctassetsPickerBundle
3333
{
34-
return [NSBundle bundleWithPath:[NSBundle ctassetsPickerBundlePath]];
35-
}
36-
37-
+ (NSString *)ctassetsPickerBundlePath
38-
{
39-
return [[NSBundle bundleForClass:[CTAssetsPickerController class]]
40-
pathForResource:@"CTAssetsPickerController" ofType:@"bundle"];
34+
return [NSBundle bundleForClass:[CTAssetsPickerController class]];
4135
}
4236

4337
@end

0 commit comments

Comments
 (0)