CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Apache 2 |
ReleasedLast Release | Sep 2015 |
Maintained by Natalia Osiecka.
Small project allowing to highlight given option via drawing a circle around it.
You can setup:
[_button.dcfView setLineColor:[UIColor blueColor]];
[_button.dcfView setAnimationDuration:4.f];
[_button.dcfView drawBezierAnimated:YES];
__weak __typeof(_button)weakButton = _button;
[_button.dcfView setCompletionBlock:^{
[weakButton.dcfView setHidden:YES];
}];
[_button.dcfView setLineWidth:5.f];
[_button.dcfView setStartPosition:DCFStartPositionBottomLeft];
[_button.dcfView setBezierApproximation:2.5f];
[_button.dcfView setMarginValue:40.f];
[_button.dcfView setBackgroundColor:[UIColor colorWithWhite:0.f alpha:0.3f]];
In your projects git folder type:
git submodule init
git submodule add --copy link to the repo--
git submodule update
Copy all files from DrawCircleFrame/DrawCircleFrame folder.
This is strongly misadvised as you won't be able to see code updates. Clone or download the source, copy all files from DrawCircleFrame/DrawCircleFrame folder.
Clone and see the demo for more examples about implementation. You can add the view via Storyboard or using code:
// in your view.h download the library
#import <DrawCircleFrame/NODCFButton.h>
#import <NOCategories/NSString+NOCSize.h>
// then add a property
@property (nonatomic) NODCFButton *button;
// alloc & init the view or setup this via storyboard
- (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
_button = [[NODCFButton alloc] initWithFrame:CGRectMake(0, 0, 200, 30)];
[self addSubview:_button];
}
return self;
}
// in your controller you can change outlook of the control
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// setup all properties eg
[_dcfExampleView.button.dcfView setLineColor:[UIColor greenColor]];
// drawing happens after calling this method
[_dcfExampleView.button.dcfView drawBezierAnimated:YES];
}
Natalia Osiecka, [email protected]
Available under the Apache 2.0 license. See the LICENSE file for more info.
Requires Xcode 5, targeting either iOS 6.0 or higher