如何在 UIWebView 中展开蓝色突出显示的文本? [英] How do I expand the blue highlighted text in UIWebView?

查看:28
本文介绍了如何在 UIWebView 中展开蓝色突出显示的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

点击并按住并释放后,文本在 UIWebView 中突出显示.用户可以通过拖动点来展开文本,但是有没有办法可以在代码中自动进行呢?例如,用户选择Abraham",我将其展开为Abraham Lincoln".

After tap and hold and release, text is highlighted in UIWebView. The user can expand the text by dragging the dots, but is there a way I can automatically do it in code? For example, the user selects "Abraham" and I expand it to be "Abraham Lincoln".

推荐答案

没有.无法使用 Apple 批准的公共 API 修改 UIWebView 的该功能.这也适用于放大镜.

No. That feature of the UIWebView cannot be modified using Apple-approved public APIs. This also applies to the magnifying glass.

这篇关于如何在 UIWebView 中展开蓝色突出显示的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆