iOS 8 Action Extension for selected text in Safari

核能气质少年 提交于 2019-12-04 21:01:28

You need to turn on NSExtensionActivationSupportsWebURLWithMaxCount to make extension available in Safari.

When you create a non-UI action extension target from the template, an Action.js file is automatically created. Edit the file to send back the selected text using

document.getSelection().toString()
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!