Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if a word is defined in the English dictionary in cocoa-touch?

I am trying to make a crossword app for IOS but i Don't know that how to check if a string is valid english word or not.

How can i check it. Is there any API or online facility to check it. Thanks in Advance

like image 746
Johnykutty Avatar asked Nov 04 '11 11:11

Johnykutty


People also ask

What does the Dictionary do on iPhone?

Apple's built-in dictionary allows you to instantly define words that you aren't familiar with, or translate them to a language you want to learn. The feature is seamlessly integrated into most of the iPhone's apps, allowing you to define words right where you are—no app opening and switching necessary.

Is there a Dictionary on iPad?

Dictionary.com is the leading free English dictionary app for iPad– with over 2,000,000 trusted definitions and synonyms. The app is designed and optimized for your device.

Does Apple have a Dictionary?

With Dictionary on your Mac, you can easily get definitions of words and phrases from a variety of sources. Tip: You can also quickly look up words while you're working in an app or browsing webpages.


1 Answers

Easy to do in iOS5 using the UIReferenceLibraryViewController class' +dictionaryHasDefinitionForTerm: method.

A UIReferenceLibraryViewController object provides a dictionary service to look up the definition of terms. You create and initialize a reference library view controller using the initWithTerm: method. You pass the term to define as the parameter to this method and the definition is displayed. You can present this view controller modally or as part of another interface. On iPad, you can set the reference library view controller as the content view controller of a UIPopoverController object. Optionally, use the dictionaryHasDefinitionForTerm: class method to check if a definition is available for a given term before creating an instance—for example, use this method if you want to change the user interface depending on whether a definition is available.

like image 144
memmons Avatar answered Sep 24 '22 23:09

memmons