且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-06-11 13:30:01

LazyFadeInView 渐入显示text文本

[翻译] 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

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