RQShineLabel

Secret app like text animation

  • 所有者: zipme/RQShineLabel
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

RQShineLabel

A UILabel subclass that lets you animate text similar to Secret app.

image

Installation

CocoaPods

RQShineLabel is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "RQShineLabel"

Manually

  1. Download and drop RQShineLabel.h and RQShineLabel.m in your project.
  2. Congratulations!

Usage

- (void)viewDidLoad
{
  self.shineLabel = [[RQShineLabel alloc] initWithFrame:CGRectMake(16, 16, 298, 300)];
  self.shineLabel.numberOfLines = 0;
  self.shineLabel.text = @"some text";
  self.shineLabel.backgroundColor = [UIColor clearColor];
  [self.shineLabel sizeToFit];
  self.shineLabel.center = self.view.center;
  [self.view addSubview:self.shineLabel];
}

- (void)viewDidAppear:(BOOL)animated
{
  [super viewDidAppear:animated];
  [self.shineLabel shine];
}

Other methods

fade in with completion block

- (void)shineWithCompletion:(void (^)())completion;

fade out

- (void)fadeOut

fade out with completion block

- (void)fadeOutWithCompletion:(void (^)())completion;

Requirements

iOS >= 6.0

Author

gk

License

RQShineLabel is available under the MIT license. See the LICENSE file for more info.

主要指标

概览
名称与所有者zipme/RQShineLabel
主编程语言Objective-C
编程语言Objective-C (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2014-05-07 14:32:53
推送于2023-12-25 18:38:44
最后一次提交2023-12-25 19:38:43
发布数6
最新版本名称1.0.0 (发布于 2019-06-13 00:15:26)
第一版名称0.1.0 (发布于 )
用户参与
星数2k
关注者数54
派生数220
提交数40
已启用问题?
问题数17
打开的问题数8
拉请求数9
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?