Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update readme

  • Loading branch information...
commit e6bde7c09b327d3ee44019c266fae8015ce98011 1 parent ab08591
@sakrist authored
Showing with 51 additions and 0 deletions.
  1. BIN  4.png
  2. +51 −0 README.md
View
BIN  4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
51 README.md
@@ -0,0 +1,51 @@
+UIDownloadBar subclassed UIProgressView
+
+Screenshot:
+
+![image](https://raw.github.com/sakrist/UIDownloadBar/master/4.png)
+
+How to use:
+
+```
+- (void)applicationDidFinishLaunching:(UIApplication *)application {
+
+
+ UIDownloadBar *bar = [[UIDownloadBar alloc] initWithURL:[NSURL URLWithString:@"https://dl-ssl.google.com/chrome/mac/stable/GGRM/googlechrome.dmg"]
+ progressBarFrame:CGRectMake(30, 100, 200, 20)
+ timeout:15
+ delegate:self];
+
+ [window addSubview:bar];
+ [bar release];
+
+}
+
+- (void)downloadBar:(UIDownloadBar *)downloadBar didFinishWithData:(NSData *)fileData suggestedFilename:(NSString *)filename {
+ NSLog(@"%@", filename);
+}
+
+- (void)downloadBar:(UIDownloadBar *)downloadBar didFailWithError:(NSError *)error {
+ NSLog(@"%@", error);
+}
+
+- (void)downloadBarUpdated:(UIDownloadBar *)downloadBar {
+
+}
+```
+
+---
+
+Version 1.0
+
+License: BSD
+
+Author: John (aka Gojohnnyboi) in 2009
+
+Updated: Vladimir (aka SAKrisT) in 2011
+
+- - -
+
+Blog Post: http://www.developers-life.com/sample-usage-uidownloadbar.html
+
+Info:
+Have fun while using and extending this package.
Please sign in to comment.
Something went wrong with that request. Please try again.