Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Secret app like text animation

License

NotificationsYou must be signed in to change notification settings

zipme/RQShineLabel

Repository files navigation

A UILabel subclass that lets you animate text similar toSecret app.

image

Installation

CocoaPods

RQShineLabel is available throughCocoaPods, to installit simply add the following line to your Podfile:

pod "RQShineLabel"

Manually

  1. Download and dropRQShineLabel.h andRQShineLabel.m in your project.
  2. Congratulations!

Usage

- (void)viewDidLoad{  self.shineLabel = [[RQShineLabelalloc]initWithFrame:CGRectMake(16,16,298,300)];  self.shineLabel.numberOfLines =0;  self.shineLabel.text =@"some text";  self.shineLabel.backgroundColor = [UIColorclearColor];  [self.shineLabelsizeToFit];  self.shineLabel.center = self.view.center;  [self.viewaddSubview:self.shineLabel];}- (void)viewDidAppear:(BOOL)animated{  [superviewDidAppear:animated];  [self.shineLabelshine];}

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.

About

Secret app like text animation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp