B-Sides / ELCImagePickerController

A clone of the UIImagePickerController using the Assets Library Framework allowing for multiple asset selection
http://www.icodeblog.com
1.65k stars 469 forks source link

ELCAssetTablePicker preparePhotos crash with Bad Exec #20

Closed Tosken1337 closed 11 years ago

Tosken1337 commented 12 years ago

Hi,

i am trying to integrate your wonderful image picker in my application. Everything works fine and the ELCAlbumPickerController let me pic an album. But then i get a bad access exception when the ELCAssetTablePicker tries to enumerate the images of the selected assetGroup. The call [self.assetGroup enumerateAssetsUsingBlock:^(...) in prepare Photos throws the exception. I try to debug but everything seems to be ok. The assetGroup is not null. I get this when i run it on an iOS 5.1 Simulater. On the iphone iOS 4.3 Simulator the albums will not load. He will not execute the code to laod the albums ansy with the dispatch_async call.

Do you have any suggestion for me?

Thanks and best regards

Tosken1337 commented 12 years ago

i figured out, that the issue comes from weak linking the uiKit and foundation framework When i remove these linker flags, it works