在屏幕上绘制文本的最佳方式
我正在为 iPad 开发一款阅读书籍应用程序,该应用程序与《玩具总动员》这本书非常相似([url=http://itunes.apple.com/us/app/toy-story-read-along/id364376920?mt=8]玩具 iTunes App Store 上的适用于 iPhone、iPod touch 和 iPad 的 Story Read-Along[/url])。所以我的问题是,将文本绘制到屏幕上的最佳方法是什么,然后,这似乎是棘手的部分,在叙述者朗读时突出显示每个单词?我现在有一些非常好的翻页动画设置和其他一些东西,但需要一些关于文本的好的建议。任何例子都非常受欢迎!
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!
我只会回答突出显示的文本。
我想最好的方法是创建一个单独的应用程序来播放您想要使用的音频文件。
当应用程序启动时,会有一个用于开始音频播放的按钮。
一旦按下播放,应用程序就会启动计时器。
现在您开始收听音频,每次开始您想要突出显示的单词时,请点击屏幕。
该应用程序跟踪时间。
在音频文件的末尾,应用程序会转储时间戳。
此时,您将有必须开始突出显示应用程序中的单个单词的确切时间。
希望有帮助!
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!