Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好,我是 iPhone 开发的新手,我想为文字制作动画,UITextView如果有人可以从非常基础的角度告诉我,我将非常感谢你们!
UITextView
它不会真的被动画化,但你可以将要显示的文本分解成单词
NSArray *wordsToDisplay = [文本组件SeparatedByString:@" "];
然后运行一个计时器,每次计时器触发时,在文本视图中的文本中添加另一个单词,一旦显示所有单词,计时器就会失效