https://github.com/hon-key/dynamicdigital
UILabel dynamic digital extention
https://github.com/hon-key/dynamicdigital
ios ios-animation ios-app objective-c
Last synced: 2 months ago
JSON representation
UILabel dynamic digital extention
- Host: GitHub
- URL: https://github.com/hon-key/dynamicdigital
- Owner: hon-key
- Created: 2019-01-08T07:48:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T10:26:09.000Z (over 6 years ago)
- Last Synced: 2025-02-28T16:58:31.284Z (3 months ago)
- Topics: ios, ios-animation, ios-app, objective-c
- Language: Objective-C
- Size: 330 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DynamicDigital
UILabel dynamic digital extention base on GCD and Method-Swizzling,
support float and Integer ConversionUILabel 基于 GCD 和方法交换的动态数字扩展,支持浮点数和整数互转,需要自取
# Usage
```
// Set your animation duration and everything is done. "dynamicDigitalAnimation = 0" represents no animation.
yourUILabel.dynamicDigitalAnimation = 1;// Set your origin digital number.
yourUILabel.text = @"0";
// Set your target digital number,it cause an animation automatically.
yourUILabel.text = @"25"
```### float to float
### int to int
