- Notifications
You must be signed in to change notification settings - Fork219
Secret app like text animation
License
NotificationsYou must be signed in to change notification settings
zipme/RQShineLabel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A UILabel subclass that lets you animate text similar toSecret app.
RQShineLabel is available throughCocoaPods, to installit simply add the following line to your Podfile:
pod "RQShineLabel"
- Download and drop
RQShineLabel.h
andRQShineLabel.m
in your project. - Congratulations!
- (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];}
fade in with completion block
- (void)shineWithCompletion:(void (^)())completion;
fade out
- (void)fadeOut
fade out with completion block
- (void)fadeOutWithCompletion:(void (^)())completion;
iOS >= 6.0
gk
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
Packages0
No packages published