GithubHelp home page GithubHelp logo

mssimplegauge's People

Contributors

programmation avatar sabymike avatar sanbbka 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  avatar  avatar  avatar  avatar

mssimplegauge's Issues

NSView (OS X) variant?

Very cool control! I bet it wouldn't be very difficult to do the same for OS X / NSView given you've used Core Graphics. Any plans of doing this soon?

Meybe an enchancement

Hello, Thanks for your lovely tool.
I am thinking if you can add an enchancement in your tool.
The ability to represent also negative percentage.
Let say we have in the middle the 0 and on the right bottom the 100% and on the left bottom the -100% So, if I have a value +20% the radius indicator will be in the right part or if I have a value of -33% the radius indicator will be in the left part.
Thank you very much.

George N. Gerardis

MSSimpleGauge is not working in Swift.

I am using MSSimpleGauge in swift Class. But the needle is not showing. Below is my Code-

let bigGauge=MSSimpleGauge()

self.bigGauge.frame=iPad ? CGRectMake(110, 140, 558, 380) : CGRectMake(self.view.frame.size.width/2-100, 73, 200, 175);
self.bigGauge.fillArcFillColor=UIColor.clearColor();
self.bigGauge.backgroundColor = UIColor.clearColor();
self.bigGauge.backgroundArcFillColor = UIColor.clearColor();
self.bigGauge.fillArcStrokeColor = UIColor.clearColor();
self.bigGauge.backgroundArcStrokeColor = UIColor.clearColor();
self.bigGauge.backgroundGradient = nil;

    self.bigGauge.startAngle = 0;
    self.bigGauge.endAngle = 180;
    self.bigGauge.value = 0;

    self.bigGauge.arcThickness = 0.3;
    self.view.addSubview(self.bigGauge);

    print(self.bigGauge);

bigGauge value is Successfully Created and on view, we change bigGauge backgroundColor then it is visible. But Needle is not showing.

Can you upload the file which is compatible with Swift.

Possible MSAnnotatedRangeGauge

First, I want to say that this is a pretty cool widget and it has been easy to use. So thanks for that.

I want to ask though, is there a reason that the Annotated and Range variations of the Gauge have their functionality separated? An MSAnnotatedRangeGauge could be very helpful.

NSAutoresizingMaskLayoutConstraints warning in iOS8.2 - labels in wrong place

the following code in MSAnnotatedGauge.m fixes the error message, but is ios 8.2 cause the labels to be
drawn on the left of the scree outside the frame. commenting it out fixes the problem , returns the error message. picture attached.

screen shot 2015-03-27 at 09 45 26

if ([_valueLabel respondsToSelector:@selector(setTranslatesAutoresizingMaskIntoConstraints:)]) {
_valueLabel.translatesAutoresizingMaskIntoConstraints = NO;
}

Gradient Color

How do you set the start and end colors for the gradient?

NSAutoresizingMaskLayoutConstraints warning in iOS8

Using the MSAnnotatedGauge in a iOS8 project, a message appears:
"Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7fa5588afba0 V:|-(5)-[UILabel:0x7fa5588ade20] (Names: '|':MSAnnotatedGauge:0x7fa5588ac020 )>",
"<NSLayoutConstraint:0x7fa5588afdc0 V:[UILabel:0x7fa5588ade20(12)]>",
"<NSLayoutConstraint:0x7fa5588afd10 V:[UILabel:0x7fa5588ade20]-(0)-[UILabel:0x7fa5588ae800'3,74']>",
"<NSLayoutConstraint:0x7fa5588affc0 V:[UILabel:0x7fa5588ae800'3,74'(32)]>",
"<NSAutoresizingMaskLayoutConstraint:0x7fa5588e6380 h=--& v=--& UILabel:0x7fa5588ae800'3,74'.midY == + 39>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fa5588afd10 V:[UILabel:0x7fa5588ade20]-(0)-[UILabel:0x7fa5588ae800'3,74']>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful."

Any idea? Thanks

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.