1and2papa / CTAssetsPickerController

iOS control that allows picking multiple photos and videos from user's photo library.
MIT License
2.15k stars 550 forks source link

No checkmark image in CocoaPods 1.0.0 #231

Open goodman-capu opened 8 years ago

goodman-capu commented 8 years ago

simulator screen shot 2016 5 16 11 02 11

sreeji44 commented 8 years ago

Actually you have selected 3 photos... 3 photos is shown as selected in shaded images ... 2,3,5 one is shaded ..

goodman-capu commented 8 years ago

But there should be a checkmark at the bottom of each selected image...when using cocoaPods 0.3 version

iamjjh commented 8 years ago

it also reappear in cocoaPods 1.0

iamjjh commented 8 years ago

you can use cocoapods 0.39

DimonDeveloper commented 8 years ago

How to fix this?

1and2papa commented 8 years ago

Sorry, development of this project is suspended. Please read the home page.

logicsb commented 8 years ago

I fixed this issue in my fork. https://github.com/logicsb/CTAssetsPickerController

I hope that help

DimonDeveloper commented 8 years ago

@logicsb How to install your fork?

I use this: pod 'CTAssetsPickerController', :git => 'https://github.com/logicsb/CTAssetsPickerController.git'

But checkmark not appeared.

logicsb commented 8 years ago

In the podfile i'm using pod 'CTAssetsPickerController', :git => 'https://github.com/logicsb/CTAssetsPickerController.git', :branch => 'master'

and cocoapods 1.0.0

DimonDeveloper commented 8 years ago

@logicsb Unfortunately it did not help.

logicsb commented 8 years ago

Try this

rm -rfd Pods rm Podfile.lock pod cache clean --all rm -rfd ~/Library/Developer/Xcode/DerivedData/* pod install

DimonDeveloper commented 8 years ago

@logicsb And it did not help, but thanks for your help.

NSDeveloper commented 8 years ago

Get a copy of CTAssetsPickerController.bundle and add it to target, then image will show.

mattathias commented 8 years ago

@DimonDeveloper I followed the instructions from @NSDeveloper (including adding the CTAssets.bundle to the target of my project) and I can see the checkmark in my project.

Thanks!

asivura commented 8 years ago

I added bundle to podspec with a different way to fix it: https://github.com/asivura/CTAssetsPickerController/commit/3ea553edf94e359219e5539fb71fd8819532baea

You can use my fork to fix this issue

pod 'CTAssetsPickerController', :git => 'git@github.com:asivura/CTAssetsPickerController.git', :branch => 'master'

ghost commented 7 years ago

@DimonDeveloper to resolve this issue, you will need the fork of @logicsb and need to change one line of code

In UIImage+CTAssetsPickerController, replace

return [UIImage imageNamed:name inBundle:[NSBundle ctassetsPickerBundle] compatibleWithTraitCollection:nil];

with

return [UIImage imageNamed:name];

asivura commented 7 years ago

Finally I've change a way how images adds to pod. Please take a look this commit https://github.com/asivura/CTAssetsPickerController/commit/3ea553edf94e359219e5539fb71fd8819532baea

matejhacin commented 7 years ago

I tried all of the solutions above and nothing worked. I then forget @asivura's project and changed the line that @shwetsolanki was talking about and it worked.

Here's my fork.

Edit: Actually i think this is also fixed in the latest release of this library (3.3.2-alpha), at least it works for me.