Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道当用户在相册或 Safari 中进行图像复制时。有没有办法以编程方式在我的应用程序中获取此图像?
请解释一下如何获取此复制图像。
找到这样一个简单而有趣的解决方案给我留下了深刻的印象:)
UIImage *img = [UIPasteboard generalPasteboard].image;