0

I am using UIPasteboard class for copy the media file. Image is successfully added in the UIPasteboard but I can't set the audio data in the UIPasteboard.

So anyone please help me, how do I add audio data in the UIPasteboard?

Currently I am using this code but this does not work:

 let past = UIPasteboard.general

 past.items = [["public.mpeg-4":data!]]
Nishant Bhindi
  • 2,242
  • 8
  • 21
Pankaj Sonava
  • 519
  • 4
  • 20

1 Answers1

0

OK, finally I got the answer. We can't set audio content in the UIPasteBoard class.

clemens
  • 16,716
  • 11
  • 50
  • 65
Pankaj Sonava
  • 519
  • 4
  • 20