Skip to content
/ fruit Public
forked from croath/fruit

iOS Label showing numbers like a slot machine

License

Notifications You must be signed in to change notification settings

akarat/fruit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fruit

###Sample

Clone and checkout the sample.

###How to use it?

Just add .h and .m to your project.

###Wanna modify it?

Checkout CRFruitView.h:

/*
 Margin between 2 animation characters.
 */
@property (nonatomic, assign) CGFloat verticalMargin;

/*
 Margin between 2 characters.
 */
@property (nonatomic, assign) CGFloat horizontalMargin;

/*
 Bounds size for one character.
 */
@property (nonatomic, assign) CGSize charSize;

/*
 Label's text's attributed dictionary.
 */
@property (nonatomic, strong) NSDictionary *textAttr;

/*
 Rolling animation number increment or not. Default YES.
 */
@property (nonatomic, assign) BOOL incrementRoll;

/*
 Rolling direction down or up. Default YES.
 */
@property (nonatomic, assign) BOOL downRoll;

/*
 Animation time(seconds) of animating one single character. Default 0.3.
 */
@property (nonatomic, assign) NSTimeInterval charAnimationDuration;

###Contribute

Fork and pull request, please.

###Who's using it?

If you are using it, please let me know.

About

iOS Label showing numbers like a slot machine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%