Latest | 0.1.1 |
---|---|
Homepage | https://github.com/JustinFincher/JZGlitchLabel |
License | MIT |
Platforms | ios 7.0, requires ARC |
Authors |
[](https://travis-ci.org/Fincher Justin/JZGlitchLabel)
Introduction
JZGlitchLabel is a …. UIView with Glitch effect you can see in after effect project.
DemoGif:
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
GLabel = [[JZGlitchLabel alloc] initWithFrame:CGRectMake(0, 20, self.view.frame.size.width,300)];
GLabel.Label.text = @"T";
GLabel.Label.font = [UIFont systemFontOfSize:150.0f weight:40];
GLabel.MinFontSize = 60;
GLabel.MaxFontSize = 160;
GLabel.MinFontWeight = 20;
GLabel.MaxFontWeight = 40;
[self.view addSubview:GLabel];
//Use this to make a glitch animation
[GLabel performGlitchTransformTo:@"You want"]
WithSteps:30
WithInterval:0.08
WithFontSize:130
WithFontWeight:50
WithGlitchParameter:20];
MinFontSize: MinFontSize when in Glitch
MaxFontSize: MaxFontSize when in Glitch
MinFontWeight: MinFontWeight when in Glitch
MaxFontWeight: MaxFontWeight when in Glitch
WithGlitchParameter: CGfloat, detemine the Glitch effect (bigger the cooler)
If there is chinese words (unicode 0x4E00 – 0x9FFF) , glitch will be chinese. else will be english (a-z,0-9).
Installation
JZGlitchLabel is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "JZGlitchLabel"
Or just grab JZGlitchLabel.h and .m from github.
Author
Fincher Justin, [email protected]
License
JZGlitchLabel is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "JZGlitchLabel", "version": "0.1.1", "summary": "UIView with Glitch effect", "homepage": "https://github.com/JustinFincher/JZGlitchLabel", "license": "MIT", "authors": { "Fincher Justin (A.k.a JustZht)": "[email protected]" }, "source": { "git": "https://github.com/JustinFincher/JZGlitchLabel.git", "tag": "0.1.1" }, "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": "Pod/Classes/**/*", "resource_bundles": { "JZGlitchLabel": [ "Pod/Assets/*.png" ] } }
Tue, 01 Mar 2016 18:09:03 +0000