Secret app like text animation
Objective-C Ruby
Latest commit 6e1b7da Jul 2, 2016 @zipme committed on GitHub Merge pull request #17 from lfarah/patch-1
Added Manual installation
Permalink
Failed to load latest commit information.
Classes Fixed multiline label animation issue Aug 12, 2015
Example podfile error Sep 24, 2015
RQShineLabel.xcworkspace init May 7, 2014
Screenshots init May 7, 2014
.gitignore init May 7, 2014
CHANGELOG.md init May 7, 2014
LICENSE init May 7, 2014
README.md Added Manual installation Jul 2, 2016
RQShineLabel.podspec Release 0.1.3 Sep 25, 2014
Rakefile init May 7, 2014

README.md

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.