• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS 8.4: Converting a URL into a PHAsset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >iOS 8.4: Converting a URL into a PHAsset (From: Carl Hoefs <email@hidden>)
 >Re: iOS 8.4: Converting a URL into a PHAsset (From: Ben Kennedy <email@hidden>)

  • Prev by Date: Re: Best way to have KVC-compliant enum property in Swift 2?
  • Next by Date: Re: iOS 8.4: Converting a URL into a PHAsset
  • Previous by thread: Re: iOS 8.4: Converting a URL into a PHAsset
  • Next by thread: Unique ID for a Window?
  • Index(es):
    • Date
    • Thread