Re: iOS 8.4: Converting a URL into a PHAsset
Re: iOS 8.4: Converting a URL into a PHAsset
- Subject: Re: iOS 8.4: Converting a URL into a PHAsset
- From: Carl Hoefs <email@hidden>
- Date: Wed, 29 Jul 2015 10:20:05 -0700
> On Jul 28, 2015, at 11:59 PM, Ben Kennedy <email@hidden> wrote:
>
>> PHAssetChangeRequest *assetRequest = [PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL: self.sourcePlayListItem.url];
>> PHObjectPlaceholder *assetPlaceholder = assetRequest.placeholderForCreatedAsset;
>> /* treat assetPlaceholder as a PHAsset and do something with it */ ;
>
This results in:
'Invalid object <PHObjectPlaceholder: 0x155b93d0> 0506A376-11F4-438D-A847-CEE5E5E4B077/L0/001 passed to deleteAssets:, objects must be of type PHAsset'
So the basic problem remains to obtain a PHAsset from an NSURL.
-Carl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden