diff --git a/index.html b/index.html index fd10875..76d261b 100644 --- a/index.html +++ b/index.html @@ -39,15 +39,17 @@
KAProgressLabel/KAProgressLabel
folder into your project.KAProgressLabel/KAProgressLabel
folder into your project.pod 'KAProgressLabel', :git => 'https://github.com/kirualex/KAProgressLabel'
add this line to your Podfile : :
+pod 'KAProgressLabel'
[_myProgressLabel setProgressColor:[UIColor black])]; // black progress bar
-[_myProgressLabel setTrackColor:[UIColor lightGrayColor])]; // gray track bar
-[_myProgressLabel setFillColor:[UIColor clearColor])]; // transparent fill color
+[_myProgressLabel setProgressColor:[UIColor blackColor]]; // black progress bar
+[_myProgressLabel setTrackColor:[UIColor lightGrayColor]]; // gray track bar
+[_myProgressLabel setFillColor:[UIColor clearColor]]; // transparent fill color
BorderWidth
-[_myProgressLabel setBorderWidth:5)]; // 5px border
+[_myProgressLabel setBorderWidth:5]; // 5px border
@@ -78,8 +80,8 @@
Set progress
// Progress must be between 0 and 1
-[_myProgressLabel setText:@"50%")];
-[_myProgressLabel setProgress:(50/100))];
+[_myProgressLabel setText:@"50%"];
+[_myProgressLabel setProgress:(50/100)];
@@ -104,8 +106,8 @@
}
-
-Other methods
+
+Advanced Usage
You may want to fine-tune yourself what arc to display or which way to draw it.
Yo can use these methods to do so.
diff --git a/params.json b/params.json
index 5b8bcee..f25da79 100644
--- a/params.json
+++ b/params.json
@@ -1 +1 @@
-{"name":"Kaprogresslabel","tagline":"Minimal circular progress label","body":"# KAProgressLabel\r\n\r\nMinimal circular progress label for iOS\r\n\r\n\r\n\r\n## Install\r\n\r\n### Normal install\r\n\r\n* Just copy the `KAProgressLabel/KAProgressLabel` folder into your project.\r\n* Import KAProgressLabel.h from your .pch file\r\n\r\n### Using Cocoapods\r\n\r\n`pod 'KAProgressLabel', :git => 'https://github.com/kirualex/KAProgressLabel'`\r\n\r\n## Usage\r\n\r\n### Display\r\n\r\nHave a look at the necessary code to display a progress label such as the one on top.\r\n\r\n#### Color\r\n\r\n```objective-c\r\n[_myProgressLabel setProgressColor:[UIColor black])]; // black progress bar\r\n[_myProgressLabel setTrackColor:[UIColor lightGrayColor])]; // gray track bar\r\n[_myProgressLabel setFillColor:[UIColor clearColor])]; // transparent fill color\r\n```\r\n\r\n#### BorderWidth\r\n\r\n```objective-c\r\n[_myProgressLabel setBorderWidth:5)]; // 5px border\r\n```\r\n\r\n### Progress\r\n\r\n####Set progress\r\n\r\n```objective-c\r\n// Progress must be between 0 and 1\r\n[_myProgressLabel setText:@\"50%\")];\r\n[_myProgressLabel setProgress:(50/100))];\r\n```\r\n\r\n####Set progress animated\r\nA delegate method is provided in order for you to change the content of the label according to your needs\r\n\r\n```objective-c\r\n- (void)viewDidLoad\r\n{\r\n\t[_myProgressLabel setDelegate:self];\r\n\t[_myProgressLabel setProgress:(50/100)\r\n\t withAnimation:TPPropertyAnimationTimingEaseOut\r\n\t duration:1\r\n\t afterDelay:0];\r\n}\r\n\r\n#pragma mark - delegate\r\n\r\n- (void)progressLabel:(KAProgressLabel *)label progressChanged:(CGFloat)progress\r\n{\r\n [label setText:[NSString stringWithFormat:@\"%.0f%%\", (progress*100)]];\r\n}\r\n```\r\n\r\n### Other methods\r\n\r\nYou may want to fine-tune yourself what arc to display or which way to draw it.\r\nYo can use these methods to do so.\r\n\r\n```objective-c\r\n- (void) setStartDegree:(CGFloat)startDegree;\r\n- (void) setEndDegree:(CGFloat)endDegree;\r\n- (void) setClockWise:(BOOL)clockWise;\r\n```\r\n\r\n\r\n\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
\ No newline at end of file
+{"name":"Kaprogresslabel","tagline":"Minimal circular progress label","body":"#KAProgressLabel\r\n\r\nMinimal circular progress label for iOS\r\n\r\n\r\n\r\n##Install\r\n\r\n###Lame install\r\n\r\n* Copy the `KAProgressLabel/KAProgressLabel` folder into your project.\r\n* Import KAProgressLabel.h from your .pch file\r\n\r\n###Using [cocoapods](http://cocoapods.org)\r\n\r\nadd this line to your Podfile : :\r\n`pod 'KAProgressLabel'`\r\n\r\n\r\n##Usage\r\n\r\n###Display\r\n\r\nHave a look at the necessary code to display a progress label such as the one on top.\r\n\r\n####Color\r\n\r\n```objective-c\r\n[_myProgressLabel setProgressColor:[UIColor blackColor]]; // black progress bar\r\n[_myProgressLabel setTrackColor:[UIColor lightGrayColor]]; // gray track bar\r\n[_myProgressLabel setFillColor:[UIColor clearColor]]; // transparent fill color\r\n```\r\n\r\n####BorderWidth\r\n\r\n```objective-c\r\n[_myProgressLabel setBorderWidth:5]; // 5px border\r\n```\r\n\r\n###Progress\r\n\r\n####Set progress\r\n\r\n```objective-c\r\n// Progress must be between 0 and 1\r\n[_myProgressLabel setText:@\"50%\"];\r\n[_myProgressLabel setProgress:(50/100)];\r\n```\r\n\r\n####Set progress animated\r\nA delegate method is provided in order for you to change the content of the label according to your needs\r\n\r\n```objective-c\r\n- (void)viewDidLoad\r\n{\r\n\t[_myProgressLabel setDelegate:self];\r\n\t[_myProgressLabel setProgress:(50/100)\r\n\t withAnimation:TPPropertyAnimationTimingEaseOut\r\n\t duration:1\r\n\t afterDelay:0];\r\n}\r\n\r\n#pragma mark - delegate\r\n\r\n- (void)progressLabel:(KAProgressLabel *)label progressChanged:(CGFloat)progress\r\n{\r\n [label setText:[NSString stringWithFormat:@\"%.0f%%\", (progress*100)]];\r\n}\r\n```\r\n\r\n##Advanced Usage\r\n\r\nYou may want to fine-tune yourself what arc to display or which way to draw it.\r\nYo can use these methods to do so.\r\n\r\n```objective-c\r\n- (void) setStartDegree:(CGFloat)startDegree;\r\n- (void) setEndDegree:(CGFloat)endDegree;\r\n- (void) setClockWise:(BOOL)clockWise;\r\n```\r\n\r\n\r\n\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
\ No newline at end of file