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

shouldSelect & didFinishPickingAssets did not return `PHAsset` #243

Open Jottae opened 7 years ago

Jottae commented 7 years ago

As a continuing to issue #155 , Just updated to the latest CTAssetsPickerController (3.3.1). I have this: func assetsPickerController(_ picker: CTAssetsPickerController!, shouldSelect asset: PHAsset!) -> Bool { print("shouldSelect (asset.description)") return true }

And i get this : Optional(<__NSArrayM 0x15161d920>( ALAsset - Type:Photo, URLs:assets-library://asset/asset.JPG?id=B9FC0379-4CFC-41A5-AF2C-D37360A9A7C1&ext=JPG ) )

On didFinishPickingAssets i get the Array of ALAsset. And this is after i have updated through pods. In my Bridging-Header.h file i have

import "CTAssetsPickerController/CTAssetsPickerController.h"

I am running on Xcode 8.1 deployment target 8 So why i am not getting a PHAsset objects?