Skip to content

jasonhotsauce/WZTransitionLabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WZTransitionLabel

WZTransitionLabel is a subclass of UILabel that provide custom transition when switching label's text.

wztransitionlabel

INSTALL

You can install it by adding pod 'WZTransitionLabel' to your pod spec, or just simply drag WZTransitionLabel.h adn WZTransitionLabel.m to your project.

USAGE

WZTransitionLabel *label = [[WZTransitionLabel alloc] initWithFrame:CGRectMake(0, 0, 300, 200)];
label.attributedText = [[NSAttributedString alloc] initWithString:@"test string" attributes:@{NSForegroundColorAttributeName: [UIColor blackColor]}];
NSAttributedString *toString = [[NSAttributedString alloc] initWithString:@"another string" attributes@{NSForegroundColorAttributeName:[UIColor redColor]}];
[label transiteToAttributedString:toString animated:YES duration:1.5];

About

WZTransitionLabel is a subclass of UILabel that provide custom transition when switching label's text.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors