Code Monkey home page Code Monkey logo

ios-circular-progress-bar's People

Contributors

viniciusaro 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  avatar  avatar  avatar  avatar  avatar

ios-circular-progress-bar's Issues

Breaking Out of Progress Bar Thread

I'm using the progress bar to count down to 0 โ€“ once the timer is finished, I want to trigger a method in my View Controller.

Do you have any sample code that will break out of your thread to call a function on the main queue?

Here is my current code:

    [MCUtil runOnAuxiliaryQueue:^{
        while(currentTime < timeLimit && self.isRecording){
            [MCUtil runOnMainQueue:^{
                currentTime += 0.01;
                self.audioProgress.percentage = (float)currentTime/timeLimit;
            }];
            [NSThread sleepForTimeInterval:0.01];
        }
        NSLog(@"reached end of time limit");
        // calling method here has delay?
    }];

Potential Leak warnings in xcode 6.3

If you run Product > Analyze in a project using Xcode 6.3 the compiler complains about several "Potential Leaks of an object"

Would be nice to tidy things up so these warnings are removed.

Border Percentage not working for filled portion

screen shot 2015-11-23 at 3 56 48 pm

Attached a screenshot. As you can see "BorderPercentange" does not work as expected.

  1. The higher the border percentage, the smaller the border, conflicts with instructions in the code.
  2. "BorderPercentage" does not apply to filled portion of the border/arc. Even when explicitly casting "borderPercentageforUnfilledArc" property. As you can see the Filled portion and unfilled portion widths are not the same.

Code is below:

self.progress_view_one.fillColor=[common_function_calls colorFromHexString:@"#66C285"];
self.progress_view_one.unfillColor=[UIColor clearColor];

 self.progress_view_two.fillColor=[common_function_calls colorFromHexString:@"#FFFFA3"];
 self.progress_view_three.fillColor=[common_function_calls colorFromHexString:@"#FFAAAA"];

self.progress_view_one.borderPercentage=0.8;
self.progress_view_two.borderPercentage=0.8;
self.progress_view_three.borderPercentage=0.8;

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.