From 62084401bac68bfe5321c3423d159e0b4d6f3e17 Mon Sep 17 00:00:00 2001 From: Mike Sprague Date: Tue, 15 Dec 2015 16:37:44 -0800 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index e13583f..30f5f0f 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,9 @@ Inspired by Appleā€™s download progress buttons in the app store Just add the two files `GBKUIButtonProgressView.h/m` to your project # Usage +* Create the button as a custom view in your xib, or create it programatically +* Make sure that you don't have a constraint for it's width (it shrinks)--you might need to set the Intrinsic Content Size to "Placeholder" in your xib to avoid errors + ```objc // Add a target (like a regular button) [self.downloadButton addTarget:self action:@selector(downloadButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; @@ -35,3 +38,8 @@ Just add the two files `GBKUIButtonProgressView.h/m` to your project [self.downloadButton setProgress:progress animated:YES]; } ``` +See the example for more info. + +# Todos +* Polish the API a bit +* Allow it to be IBDesignable