本文介绍了如何确定UIPasteboard的价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
1)我使用此方法从 UIPasteboard
复制图像 [UIPasteboard generalPasteboard] .image;
1) I copy image from UIPasteboard
using this method [UIPasteboard generalPasteboard].image;
2)创建图像后,我想清理 UIPasteboard
。所以我写这个方法 [UIPasteboard generalPasteboard] .image = nil;
但这在ios 4和ios 5上工作正常但它在ios 6上出现了问题。
2) After creating an image i want to clean the UIPasteboard
. so i write this method [UIPasteboard generalPasteboard].image = nil;
But this working fine on ios 4 and ios 5 But it gives problem on ios 6.
3)在我的应用程序中我想清理 UIPasteboard
或nil UIPasteboard
价值。我怎么能在ios 6上做到这一点?
3) In my app i want to clean UIPasteboard
or nil the UIPasteboard
value. How can i do this on ios 6?
推荐答案
这就是我目前使用的
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setValue:@"" forPasteboardType:UIPasteboardNameGeneral];
这篇关于如何确定UIPasteboard的价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!