开发者

How to make a such animation of UItextView or TTTextView as shown in picture

an App Shopper implement As shown in picture:

How to make a such animation of UItextView or TTTextView as shown in picture

there is a table item or a button "Read More..." when click this button, the button animates to this piece of words' end to show all words up. As shown in picture 2

  1. Is it a UITextView?
  2. The "Button" is a UIButton or a Table开发者_如何转开发 Item?
  3. How to implement this animation?

How to make a such animation of UItextView or TTTextView as shown in picture


I did something similar by simply having UILabels and UITextViews lined up vertically. For the button I use a transparent UIButton of type UIButtonTypeCustom. Then I change the frame & text of the labels / textviews (the one with the text, and the ones below it) in an animation block.

There is also a way to do this in a table view. There is an Apple sample code project with section headings that you can click to expand. But the section is still visible, so perhaps this is not the right approach for you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜