效果预览
安装
从CocoaPods安装
CocoaPods 推荐用CocoaPods来添加管理AMAnimatedNumber控件到你的项目中.
添加到 Podfile 文件中.
pod "AMAnimatedNumber", "~> 0.0.1"
使用pod命令
pod install
进行安装.- 导入 AMAnimatedNumber:
#import <AMAnimatedNumber.h>
.
使用方法
- 初始化:
AMAnimatedNumber *animateNumber = [[AMAnimatedNumber alloc] initWithFrame:CGRectMake(0, 0, 300, 35)];
[self.view addS