I got it. Let me clarify the example. It's only a demo to show how to access the asset of the photo library through the file path. if I need to edit this asset, I can access it through the PhotoKit API and then call the method below to write it to my app's sandbox.
[[PHAssetResourceManager defaultManager] writeDataForAssetResource:targetResource
toFile:url
options:options
completionHandler:^(NSError * _Nullable error) {
}];
Post
Replies
Boosts
Views
Activity
Everything is good. Thank you for the reply~