V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  zzzla  ›  全部回复第 1 页 / 共 1 页
回复总数  3
@zj299792458
live photo 在文件夹里面就是同名不同后缀的 IMG_xxxx.(jpg/heic) + IMG_xxxx.mov
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
PHAssetCreationRequest *assetChangeRequest = [PHAssetCreationRequest creationRequestForAsset];
[assetChangeRequest addResourceWithType:PHAssetResourceTypePhoto fileURL:[NSURL fileURLWithPath:imagePath] options:nil];
[assetChangeRequest addResourceWithType:PHAssetResourceTypePairedVideo fileURL:[NSURL fileURLWithPath:videoPath] options:nil];
} completionHandler:^(BOOL success, NSError *error) {
if(completionHandler)
completionHandler(success,error);
}];
同 80 楼 自己手动的话想怎么来就怎么来 也不麻烦
1. 自己新建个 app info.plist 开启 UIFileSharingEnabled
2. 图片丢到 document 里面
3. 遍历所有图片文件,添加到手机相册
同 80 楼 把图片直接
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   724 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 20:48 · PVG 04:48 · LAX 13:48 · JFK 16:48
Developed with CodeLauncher
♥ Do have faith in what you're doing.