Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zipme/RQShineLabel
Secret app like text animation
https://github.com/zipme/RQShineLabel
Last synced: 3 months ago
JSON representation
Secret app like text animation
- Host: GitHub
- URL: https://github.com/zipme/RQShineLabel
- Owner: zipme
- License: mit
- Created: 2014-05-07T14:32:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-25T18:38:44.000Z (10 months ago)
- Last Synced: 2024-07-19T03:22:41.142Z (4 months ago)
- Language: Objective-C
- Size: 11.1 MB
- Stars: 1,967
- Watchers: 55
- Forks: 218
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - RQShineLabel - Secret app like text animation (UI / Label)
- awesome-ios-star - RQShineLabel - Secret app like text animation (UI / Label)
- project-awesome - zipme/RQShineLabel - Secret app like text animation (Objective-C)
README
# RQShineLabel
A UILabel subclass that lets you animate text similar to [Secret app](http://capptivate.co/?s=secret).
![image](https://raw.githubusercontent.com/zipme/RQShineLabel/master/Screenshots/rqshinelabel.gif)
## Installation
#### CocoaPods
RQShineLabel is available through [CocoaPods](http://cocoapods.org), 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
```objc
- (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
```objc
- (void)shineWithCompletion:(void (^)())completion;
```fade out
```objc
- (void)fadeOut
```fade out with completion block
```objc
- (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.