Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.1 KB

README.md

File metadata and controls

63 lines (43 loc) · 1.1 KB

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.