开发者

Custom view with text floating in background (like Voice Control app)

How would I go about creating a view where the background has various text strings floating by at different opacities and speeds, like in the Voice Control app's background? I'd appreciate any code or places where to look. Than开发者_如何转开发ks!

BTW I'd prefer a solution that isn't 4.0 specific...I have to run this on a first-gen device, so 3.1.3's API is as high as I can use here.


Add UILabels programmatically, with variations on opacity, color, and font, then animate them across the view. Just changing the location of the labels in a loop will result in the location being animated around.

You could also do it in Core Text, but it wouldn't gain you anything and would be significantly more difficult to animate.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜