From da389d754648270c02a708c560aaac9f6e4f0856 Mon Sep 17 00:00:00 2001 From: Ryan Brodie Date: Tue, 24 Nov 2015 12:58:45 +0000 Subject: [PATCH] Fixed class type mislabelling Also gave preference to using a UIView with a custom class within Interface Builder over alternative programmatic method. --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c39f44b..b1cb334 100755 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@ To use `DACircularProgress`: ### Example Code +##### Within Interface Builder + +Add a `UIView` element and set its class to `DACircularProgressView` or `DALabeledCircularProgressView`. + +##### Programmatically + +Alternatively, manually initialise and add to a UIView: + ```objective-c self.progressView = [[DACircularProgressView alloc] initWithFrame:CGRectMake(140.0f, 30.0f, 40.0f, 40.0f)]; @@ -26,8 +34,6 @@ self.progressView.trackTintColor = [UIColor clearColor]; [self.view addSubview:self.progressView]; ``` -- You can also use Interface Builder by adding a `UIView` element and setting its class to `DACircularProgress` - ## Notes ### Compatibility