I have a URL pointing to an MP3 file: http://tts-api.com/tts.mp3?q=Here%20is%20a%20test
I've been reading on some questions and I can't figure out how I can turn this URL into a file and then share that file using UIActivityViewController
I have a URL pointing to an MP3 file: http://tts-api.com/tts.mp3?q=Here%20is%20a%20test
I've been reading on some questions and I can't figure out how I can turn this URL into a file and then share that file using UIActivityViewController
You're asking two different questions - how to download file, and how to use UIActivityViewController
. The first can be answered with this: How to download file in swift?
The second can be answered by taking a look at the delegate methods. Also this: How to display the default iOS 6 share action sheet with available share options?