What is the fastest way to write images captured from camera to the Photos album on an iPhone?

StackOverflow https://stackoverflow.com/questions/3598532

  •  02-10-2019
  •  | 
  •  

문제

I'm currently using writeImageToSavedPhotosAlbum:orientation:completionBlock: and it is taking a little over 3 seconds to write an image to the Photos album ... whereas the standard Camera app seems to persist images much faster.

So, what is the fastest way to write files to the default Photos album?

I'm not sure what all my options are and the pros/cons of each. Any help would be appreciated.

Thanks -wg

도움이 되었습니까?

해결책

Dont save them to the camera album first. I dont think there is a faster way to write to the iPhone camera library. but you can save them to your own application space or leave them in memory so and try and write in the background.

다른 팁

Further, you can do saving photos in parallel using NSOperation. And like John, remained jobs can be done in background.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top