如何检查在textview中输入的拼写? [英] How to check spelling entered in textview?

查看:105
本文介绍了如何检查在textview中输入的拼写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UITextview,用户可以在其中输入文本.之后,我将该文本作为字符串并显示在另一个textview中,并希望语法上不正确的单词.

I have one UITextview in which user enter text. after that i take that text as a string and display it in another textview and want the words which are grammatically incorrect.

该怎么做?

推荐答案

iOS系统仅在用户输入文本时提供拼写检查.如果用户选择输入错误的单词,iOS将无济于事.如果要执行自己的拼写检查,则必须包括自己的拼写检查库.

iOS system only provide spell checking while the user is inputting text. If the user choose to type in the wrong word or words, iOS cannot help. If you want to perform your own spell checking, you will have to include your own spell checking library.

GNU Aspell 是一个免费和开源的拼写检查工具,旨在最终取代Ispell.它既可以用作,也可以用作独立的拼写检查器.

GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell. It can either be used as a library or as an independent spell checker.

iPhone上的拼写检查器?是几年前在这里问到的.我不确定他们是否能正常工作.

Aspell Spell Checker on iPhone? was asked a few years ago here on SO. I am not sure if they ever got it working.

这篇关于如何检查在textview中输入的拼写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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