How to save photos taken using AVFoundation to Photo Album?

后端 未结 4 1760
难免孤独
难免孤独 2020-12-23 11:02

AVFoundation is just great for those who want to get hands dirty, but there still a lot of basic stuff not easy to figure like how to save the pictures taken from device to

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 11:22

    There is a lot to setting up the camera this way that you either aren't doing or aren't showing.

    The best place to look would be at: AVCamCaptureManager.m in the the AVCam sample project; particularly setupSession and captureStillImage (which writes the photo to the library).

提交回复
热议问题