Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用writeImageToSavedPhotosAlbum:orientation:completionBlock:将图像写入相册需要 3 秒多一点……而标准相机应用程序似乎可以更快地保存图像。
那么,将文件写入默认相册的最快方法是什么?
我不确定我的所有选择是什么以及每个选项的优缺点。任何帮助,将不胜感激。
谢谢-wg
不要先将它们保存到相册中。我认为没有更快的方法可以写入 iPhone 相机库。但是您可以将它们保存到您自己的应用程序空间或将它们留在内存中,然后尝试在后台写入。
此外,您可以使用 NSOperation 并行保存照片。和约翰一样,剩下的工作可以在后台完成。