Game Development Community

Accessing iPhone Dictionary

by Yash Adukia · in iTorque 2D · 06/29/2011 (10:01 pm) · 4 replies

Hello,
My game needs a dictionary to compare words. So, I want to know if I can access the inbuilt iPhone dictionary?...if yes, How to access it using iTorque 2D.
Thank You.

#1
06/30/2011 (6:19 am)
I don't believe this is accessible from code. I did a search in the iOS docs and did not find anything specific to the dictionary. However, you do have access to UITextChecker: link to docs
#2
06/30/2011 (9:12 pm)
Thanks Michael,
I also want to know how do I pop up the iPhone keyboard when I touch the UI text field from iTorque2D
#3
06/30/2011 (9:13 pm)
Also How can I access the UITextChecker from iTorque2D
#4
06/30/2011 (9:44 pm)
When you are clicking on a UITextField on an interface, the keyboard will automatically pop up. Once you get that string from the field, you can pass it into the guessesForWordRange function for a UITextChecker. Check out the link to see how it's used. After that, you will have two objects, the original and an array of guesses to pick from.