如何使一个特定的词可触及其在文本中的含义? [英] how to make a specific word touchable for its meaning in a text?

查看:148
本文介绍了如何使一个特定的词可触及其在文本中的含义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为iPhone开发一本散文书。所以我把所有的诗和文本存储在核心数据中。
一个名为 story 的实体以及包含整个轶事的细节实体。

I'm developing a prose book for iPhone. So I'm storing all of the poems and texts in core data. An entity named story and on attribute named details which contains the whole anecdote.

但问题是这里:如果用户想要触摸特定的单词和诗的意义和定义,我应该如何处理这个任务?如何使这些诗歌可选择?
像在iPhone中的字典一样,用户触摸并按住他的手指上一个特定的单词,一个弹出窗口出现并显示单词的定义!

But the problem is here: if the user wants to touch the specific words and poems for their meaning and definition, how should I handle this task? How can I make those poems selectable? As like as built in dictionary in iPhone, user touches and hold his finger on a specific word, a popup appears and show the definition of the word!

书样

推荐答案

您会在 UILabel 中显示它们,如果是,您可能对这些感兴趣:

Do you show them in UILabel, if it is, you might interested in these :

gltaplabeldemo

rtlabel

ohattributedlabel

祝你好运。

这篇关于如何使一个特定的词可触及其在文本中的含义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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