iPhone SDK 中可滚动、可点击的文本
我想制作一个基于文本的应用程序,在可滚动屏幕中包含可点击的文本。 TextView 似乎无法做到这一点。
让我解释一下:你打开应用程序,有一个很长的段落。您向下滚动并单击“锤子”一词(可能是彩色或粗体的),然后会出现一个小弹出窗口,其中包含锤子的定义。这怎么可能?
如果您想查看示例,这里有一个圣经应用程序中具有类似功能的 YouTube 视频(尽管它们不使用弹出框): http://www.youtube.com/watch?v=qNCgePlBamQ
如有任何帮助,我们将不胜感激
I'd like to make a text based app with clickable text in a scrollable screen. Can't seem to do it with TextView.
Let me explain: you open the app and there is a long paragraph. You scroll down and click on the word hammer (which is probably colored or bolded) and a small pop up window appears with a definition of hammer. How is this possible?
If you'd like to see an example, here is a youtube vid of somewhat similar functions in a bible app (though they don't use a pop up box): http://www.youtube.com/watch?v=qNCgePlBamQ
Any help would be appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 UIWebView 和 HTML
,如下: iOS 可点击单词(UILabel 或 UIbutton's)最近被可疑地询问
You could use a UIWebView and HTML
and this: iOS Clickable Words (UILabel or UIbutton's) was asked suspiciously recently