A
A
Alex Gouk2019-08-29 17:20:59
Swift
Alex Gouk, 2019-08-29 17:20:59

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

1 answer(s)
D
Dima Grib, 2019-08-29
@GoVnOmEsss

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 question

Ask a Question

731 491 924 answers to any question