RQShineLabel

Secret app like text animation

  • Owner: zipme/RQShineLabel
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerzipme/RQShineLabel
Primary LanguageObjective-C
Program languageObjective-C (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2014-05-07 14:32:53
Pushed At2023-12-25 18:38:44
Last Commit At2023-12-25 19:38:43
Release Count6
Last Release Name1.0.0 (Posted on 2019-06-13 00:15:26)
First Release Name0.1.0 (Posted on )
用户参与
Stargazers Count2k
Watchers Count54
Fork Count220
Commits Count40
Has Issues Enabled
Issues Count17
Issue Open Count8
Pull Requests Count9
Pull Requests Open Count0
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private