Latest 0.3.0
Homepage https://github.com/wangyansnow/WYCountingLabel
License MIT
Platforms ios 6.0
Authors

WYCountingLabel

一款使用CoreAnimation实现动画数字变动效果

Installation

  • 1.cocopods
    • pod ‘WYCountingLabel’
  • 2.手动导入
    • WYCountingLabel整个文件夹拖入项目即可

      How to use WYCountingLabel

      格式化Label

      __weak typeof(self) weakSelf = self;
      WYCountingLabel plusLabel = [[WYCountingLabel alloc] initWithFrame:CGRectMake(20, 100, 100, 30)];
      [self.view addSubview:plusLabel];
      [plusLabel setWy_FormatBlock:^NSString *(double wy_number) {
      NSString *str = [NSString stringWithFormat:@"%.2f元", wy_number];
      return str;
      }];
      plusLabel.wy_number += 10;    

      从一个数到另一个数的动画

      WYCountingLabel plusLabel = [[WYCountingLabel alloc] initWithFrame:CGRectMake(20, 100, 100, 30)];
      [self.view addSubview:plusLabel];
      [plusLabel countFrom:0 to:1576 duration:2.0];

      Author

wangyansnow, [email protected]

License

WYCountingLabelDemo is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "WYCountingLabel",
    "version": "0.3.0",
    "summary": "u6570u5b57u52a8u753b",
    "description": "u4f7fu7528CoreAnimationu5b9eu73b0u7684u6570u5b57u53d8u52a8u52a8u753buff0cu652fu6301u65f6u95f4u6570u5b57u63a7u5236",
    "homepage": "https://github.com/wangyansnow/WYCountingLabel",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "wangyansnow": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wangyansnow/WYCountingLabel.git",
        "tag": "0.3.0"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "WYCountingLabel/*.{h,m}"
}

Pin It on Pinterest

Share This