plus 如何访问UIPasteboard *pasteboard = [UIPasteboard pasteboardWithName:@"cn.party1.doudizhudz" create:NO];
9***@qq.com
- 发布:2017-10-17 11:04
- 更新:2017-10-18 15:53
- 阅读:1373
plus 如何访问UIPasteboard的pasteboardWithName次方法?
分类:HTML5+
6 个回复
9***@qq.com (作者)
有人吗?
回梦無痕 - 暂停服务
9***@qq.com (作者)
var pasteb = new UIPasteboard({pasteboardWithName:"cn.party1.doudizhudz",create:"NO"});
pasteb不为空,但是读数据dataForPasteboardType,无法读取,都返回null
2017-10-17 13:31
9***@qq.com (作者)
有人知道解决方法吗?
9***@qq.com (作者)
var pasteb = new UIPasteboard({pasteboardWithName:"cn.party1.doudizhudz",create:"NO"});
回梦無痕 - 暂停服务
9***@qq.com (作者)
var UIPasteboard = plus.ios.newObject("UIPasteboard","pasteboardWithName:create:","cn.party1.doudizhudz","NO");
alert("UIPasteboard="+UIPasteboard);
还是读不出来数据
iOS与原生就可以
UIPasteboard *pasteboard = [UIPasteboard pasteboardWithName:@"cn.party1.doudizhudz" create:NO];
id sss = [NSKeyedUnarchiver unarchiveObjectWithData:[pasteboard dataForPasteboardType:@"app_info"]];
2017-10-18 10:39
9***@qq.com (作者)
还想没有解决,有人知道吗?谢谢