iOS将多个图像复制到粘贴板 [英] iOS copy multiple images to pasteboard
本文介绍了iOS将多个图像复制到粘贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以将一张图片复制到贴图板:
UIPasteboard *
pasteboard = [UIPasteboard generalPasteboard];
UIImage * image;
[pasteboard setImage:image];
如何将两张或三张图片复制到贴图板?
< divmap =h2_lin>解决方案
[[UIPasteboard generalPasteboard] setImages:[NSArray arrayWithObjects:firstImage,secondImage,nil]
我认为这是你要找的。也可以设置多个类型(PNG,JPG等)的单个图像,以便其他应用程序更可能找到可用的图像。
〜好运
I can copy one image to the pasteboard like so:
UIPasteboard *pasteboard;
pasteboard = [UIPasteboard generalPasteboard];
UIImage *image;
[pasteboard setImage:image];
How can I copy two or three images to the pasteboard?
解决方案
[[UIPasteboard generalPasteboard] setImages:[NSArray arrayWithObjects:firstImage, secondImage, nil]];
I think this is all you're looking for. It is also possible to set a single image with multiple types (PNG, JPG, etc.) so that it is more likely that another application will find a usable image.
~ Good Luck
这篇关于iOS将多个图像复制到粘贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文