zzzla 最近的时间轴更新
zzzla

zzzla

V2EX 第 242311 号会员,加入于 2017-07-20 10:44:37 +08:00
zzzla 最近回复了
@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   ·   我们的愿景   ·   实用小工具   ·   2486 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 15:40 · PVG 23:40 · LAX 08:40 · JFK 11:40
Developed with CodeLauncher
♥ Do have faith in what you're doing.