以编程方式访问iOS字典 [英] Access iOS dictionary programmatically

查看:123
本文介绍了以编程方式访问iOS字典的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种以编程方式访问iOS字典的方法。我需要的是从自定义应用程序中检索特定语言的单词列表。

有可能吗?有没有提供这种(或类似的)功能的API?

我已经检查过苹果文档,但没有找到任何有用的东西。有人可以指出我正确的方向吗?

I'm looking for a way to access iOS dictionary programmatically. What I need is to retrieve the list of the words of a particular language from inside a custom app.
Is it possible? Are there any API that provide this (or similar) functionality?
I've checked Apple documentation but didn't find anything useful...May someone point me to the right direction?

推荐答案

我不认为有一个公共API来访问嵌入式字典。最接近的是使用 UITextChecker ,但可能无法满足您的需求需要

I don't think there is a public API to access the embedded Dictionary. The closest is using UITextChecker but that may not satisfy your needs

作为替代,您可以在您想要的语言中找到并嵌入Word字典这可能需要一些额外的工作

As an alternative, you could find and embed a Word Dictionary in the Language you want? It may require some extra work

这篇关于以编程方式访问iOS字典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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