Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Picker ObjC #1

Open
Jan-E opened this issue Dec 20, 2020 · 1 comment
Open

Video Picker ObjC #1

Jan-E opened this issue Dec 20, 2020 · 1 comment

Comments

@Jan-E
Copy link

Jan-E commented Dec 20, 2020

Hi @kylehowells

I just want to say a big thanks. Your example Photo Picker ObjC gave me a jump start to use PHPickerViewController in stead of UIImagePickerController for importing videos from the Photos library into my B2B app. See here:

Jan-E/ikyle.me-code-examples

There will be a time when Apple deprecates UIImagePickerController. I am ready for it now.

Demo of the use of my B2B app in the Xcode Simulator, still with the UIImagePickerController:
https://player.toolsforresearch.com/iPhone12.php

Thanks again,
Jan

@Jan-E
Copy link
Author

Jan-E commented Dec 23, 2020

Quote from you blog:

NOTE: There is an assetIdentifier property defined on PHPickerResult, which is documented as Local identifier of the selected asset. However, (as of iOS 14.0 beta 1, in my testing this is always nil; regardless of whether or not the app has been granted full photo library access.
I presume that is meant to be the PHAsset's assetIdentifier allowing us to retrieve the asset object with a call to asset = PHAsset.fetchAssets(withLocalIdentifiers: [photoID], options: nil).firstObject.

I solved this by Jan-E@90de6e9

See https://developer.apple.com/forums/thread/650902 for the Swift code by ‘Frameworks Engineer’ that put me in the right track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant