I am trying to get the copied gif from UIPasteboard, but what's the pasteboard type going to be? The com.compuserve.gif or kUTTypeGIF. Should I use - valueForPasteboardType: or just use image property to get the gif?
Asked
Active
Viewed 227 times
2 Answers
0
I think one of the proper way to store images in pasteboard is as NSData.Then reconstruct UIImage from NSData.

ares777
- 3,590
- 1
- 22
- 23
0
This works for me:
UIPasteboard.generalPasteboard().setData(myGifData as! NSData, forPasteboardType:"com.compuserve.gif")

theSiberman
- 441
- 4
- 14