可以从 Safari 访问 UIPasteBoard 吗?
我想将一些内容从本机应用程序复制到粘贴板中。然后从本机浏览器读取复制的值。有办法做到这一点吗?
I'd like to copy something from a native application into the paste board. And then read the copied value from the native browser. Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的意思是从粘贴板读取它而不让用户实际粘贴它吗?如果是这样,那么答案是明确的否——在没有用户输入的情况下读取粘贴板将是安全禁忌(假设您刚刚在另一个应用程序中复制了信用卡#或SS#? )。
Do you mean read it from the pasteboard without having the user actually paste it? If so, then the answer is a definite no -- reading the pasteboard without user input would be a security no-no (suppose you'd just copied your credit card # or SS# in another app?).