您的位置:首页 > 其它

[翻译] LazyFadeInView 渐入显示text文本

2014-04-28 19:42 375 查看
LazyFadeInView 渐入显示text文本



https://github.com/itouch2/LazyFadeInView

LazyFadeInView is a cool way to animate the appearnce of a label. This effect is a clone of Secret app.

LazyFadeInView 非常酷,以一种动画的形式来显示一个label。与 Secret app 中的效果一样。

Usage

To use LazyFadeInView, create a
LazyFadeInView
and add it to your view. It will animate to show up once it's text is set.

使用 LazyFadeInView,创建一个LazyFadeInView,然后添加到你的view中。它会自动的用动画的形式显示出来。

An example of making a lazy fade in view:

以下是一个例子,教你如何创建以及使用的:

LazyFadeInView *fadeInView = [[LazyFadeInView alloc] initWithFrame:CGRectMake(20, 120, 280, 200)];
self.fadeInView.text = @"Stray birds of summer come to my window to sing and fly away.";
[self.view addSubview:self.fadeInView];


A Quick Peek

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: