Answer the question
In order to leave comments, you need to log in
How do I allow an app to interact with my phone's photo gallery?
I want to finish off an opportunity to the user to add the photos after pushing the button. Please tell me how to do it)
Answer the question
In order to leave comments, you need to log in
self.getDataFromUrl(url: yourImageURL) { [weak self] data2, response, error in
guard let data = data2, let imageFromData = UIImage(data: data) else { return }
//self?.imageView.image = imageFromData
UIImageWriteToSavedPhotosAlbum(imageFromData, self, #selector(...), nil)
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question