Get the local file path of a PHAsset

后端 未结 6 1658
后悔当初
后悔当初 2021-02-18 21:31

I have a photo I want my user to be able to share on Instagram and I need to get the local file directory of the photo.

However I am fetching my images as a PHAsset (not

6条回答
  •  天涯浪人
    2021-02-18 22:17

    Requests asset information for beginning a content editing session.

    - (PHContentEditingInputRequestID)requestContentEditingInputWithOptions:(PHContentEditingInputRequestOptions *)options 
                                                          completionHandler:(void (^)(PHContentEditingInput *contentEditingInput, NSDictionary *info))completionHandler;
    

    The URL to a file that contains the full-sized image data.

    @property(readonly, copy) NSURL *fullSizeImageURL;
    

提交回复
热议问题