在屏幕上绘制文本的最佳方式

发布于 09-05 06:51 字数 429 浏览 9 评论 0原文

I am working on a read-along-book app for the iPad which is very similar to this Toy Story book ([url=http://itunes.apple.com/us/app/toy-story-read-along/id364376920?mt=8]Toy Story Read-Along for iPhone, iPod touch, and iPad on the iTunes App Store[/url]). So my question is how would be the best way to draw the text to the screen and then, here seems to be the tricky part, highlight over each word as it is read by the narrator? I have some pretty nice page turning animation setup now and a few other things on there way, but need some good suggestions for the text. Any examples are very much welcomed!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里人2024-09-12 06:51:37

我只会回答突出显示的文本。

我想最好的方法是创建一个单独的应用程序来播放您想要使用的音频文件。

当应用程序启动时,会有一个用于开始音频播放的按钮。

一旦按下播放,应用程序就会启动计时器。

现在您开始收听音频,每次开始您想要突出显示的单词时,请点击屏幕。
该应用程序跟踪时间。

在音频文件的末尾,应用程序会转储时间戳。

此时,您将有必须开始突出显示应用程序中的单个单词的确切时间。

希望有帮助!

I'll answer only for the text highlighting.

I guess the best way to do it is to create a separate app that play the audio file you want to use.

when the apps starts there will be a button for starting the audio playback.

once pressed play, the app starts a timer.

now you start listening the audio, every time a starts a word that you want to highlight tap the screen.
the app tracks the time.

at the end of the audio file, the apps dumps the timestamps.

at this point you'll have the exact time in which you'll have to start highlighting the single word in your application.

Hope it help!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文