How to take a picture and save it to the app locally with swift

前端 未结 3 464
攒了一身酷
攒了一身酷 2021-01-31 12:43

I\'m working on an app where in the current stage when a user takes a picture the picture will be stored locally within the app.

 @IBAction func CameraAction(se         


        
3条回答
  •  清歌不尽
    2021-01-31 13:28

    Use this Method: with your image argument as below:

    UIImageWriteToSavedPhotosAlbum(imagePicked, nil, nil, nil)
    

提交回复
热议问题