I am writing an iphone app for learning synonyms. Certain words which have a synonym will be clickable. Upon clicking one of those word, the word should get highlighted and a popup should list a bunch of synonyms. Upon clicking on one of the synonyms, the word should get replaced by its synonym.
I have the following questions:
-
What are the different ways of displaying, say an article of a few thousand words? One way is a WebView. Any others?
-
How can I achieve this “highlight the word and popup a list of synonyms” effect. I see a similar situation when I click on an word on a webpage in safari on my iphone. A word gets highlighted and a popup with the option “copy”
You could look into using an
NSAttributedStringwithOHAttributedLabel. Another alternative may be the EgoTextView.