Code Monkey home page Code Monkey logo

flickernumber's People

Contributors

coeur avatar ideal-yang avatar openboy2012 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flickernumber's Issues

Wrong calculation values if the number is less than 10

  • (void)flickerAnimation:(NSTimer *)timer{
    long long rangeInteger = [timer.userInfo[DDRangeIntegerKey] longLongValue];
    self.flickerNumber = @([self.flickerNumber longLongValue] + rangeInteger);

rangeInteger value is always zero

  • (void)flickerAnimation:(NSTimer *)timer{
    float rangeInteger = [timer.userInfo[DDRangeIntegerKey] floatValue];
    self.flickerNumber = @([self.flickerNumber floatValue] + rangeInteger);

need to take a float value

时间不准

和一个CAAnimate 一起使用的时候, 时间不准, 设定十秒到100, 实际三秒左右就到了

嗨,我发现了一个Bug

谢谢你开源这个实用方便,功能准确而实用的库。

在调用时,如果传入的duration为0.0时,显示的结果为(无限大)符号。

- (void)dd_setNumber:(NSNumber *)number duration:(NSTimeInterval)duration format:(NSString *)formatStr numberFormatter:(NSNumberFormatter *)formatter attributes:(id)attrs加入一下代码后正常

if (duration < 0) {
    duration = 0;
}
if (duration <= 0.000001) {
    self.text = [self finalString:number stringFormat:formatStr andFormatter:formatter];
    return;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.