Skip to content

Commit

Permalink
fix resources loading
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-dumit committed Nov 27, 2017
1 parent 0d59e4e commit d1faadb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions CTAssetsPickerController.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Pod::Spec.new do |spec|
spec.source = { :git => 'https://github.com/chiunam/CTAssetsPickerController.git', :tag => 'v3.3.2-alpha' }
spec.public_header_files = 'CTAssetsPickerController/*.h'
spec.source_files = 'CTAssetsPickerController/**/*.{h,m}'
spec.resource_bundles = { 'CTAssetsPickerController' => ['CTAssetsPickerController/Resources/*.lproj'] }
spec.resources = 'CTAssetsPickerController/Resources/CTAssetsPicker.xcassets'
spec.resources = 'CTAssetsPickerController/Resources/**/*'
spec.ios.frameworks = 'Photos'
spec.requires_arc = true
spec.dependency 'PureLayout', '~> 3.0.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ @implementation NSBundle (CTAssetsPickerController)

+ (NSBundle *)ctassetsPickerBundle
{
return [NSBundle bundleWithPath:[NSBundle ctassetsPickerBundlePath]];
}

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

@end

0 comments on commit d1faadb

Please sign in to comment.