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

 
原文地址:https://www.cnblogs.com/YouXianMing/p/3697068.html