开发者

Displaying text in an animated way!

开发者 https://www.devze.com 2023-01-08 02:31 出处:网络
I want to display a series of text in an animated way one after the other i.e. i want something as displayed in the follwing link..

I want to display a series of text in an animated way one after the other i.e. i want something as displayed in the follwing link..

http://www.t开发者_如何学运维cs.com/homepage/Pages/default.aspx

In the above link a series of text are displayed in animated way and if a user clicks on text a video is opened.i want exactly same feature in my app.

is there any ref or sample code available?


Are you only referring to the text fading and sliding in or do you want the bubble animation of the backing image as well? If all you want is the text animation, you can use Core Animation to implicitly animate the text into view by setting the center and opacity of a view--probably a text view. Something like:

[UIView beginAnimations:nil context:NULL];
[textView setAlpha:1.0f];
[textView setCenter:newCenter];
[UIView commitAnimations];

This code assumes that the current alpha on your text view prior to animating is 0.0 and the center is somewhere off screen. The variable newCenter is a CGPoint at which your anchor point will then display after the animation finishes.

Let me know if you need clarification.

0

精彩评论

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

关注公众号