-1

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

Peter O.
  • 32,158
  • 14
  • 82
  • 96
shakked
  • 783
  • 8
  • 24

1 Answers1

0

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?

Community
  • 1
  • 1
Mark
  • 12,359
  • 5
  • 21
  • 37