added other initiliazers
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
c03e04069a
commit
d5a9710b6c
@ -17,17 +17,37 @@
|
|||||||
|
|
||||||
@implementation MFLoadingSpinner
|
@implementation MFLoadingSpinner
|
||||||
|
|
||||||
|
- (instancetype)init {
|
||||||
|
self = [super init];
|
||||||
|
if (self) {
|
||||||
|
[self setup];
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(CGRect)frame
|
- (instancetype)initWithFrame:(CGRect)frame
|
||||||
{
|
{
|
||||||
self = [super initWithFrame:frame];
|
self = [super initWithFrame:frame];
|
||||||
if (self) {
|
if (self) {
|
||||||
self.loader = [[VDSLoader alloc] init];
|
[self setup];
|
||||||
[self addSubview: self.loader];
|
|
||||||
[NSLayoutConstraint pinViewToSuperview:self.loader useMargins:false];
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (instancetype)initWithCoder:(NSCoder *)coder {
|
||||||
|
self = [super initWithCoder: coder];
|
||||||
|
if (self) {
|
||||||
|
[self setup];
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
-(void) setup {
|
||||||
|
self.loader = [[VDSLoader alloc] init];
|
||||||
|
[self addSubview: self.loader];
|
||||||
|
[NSLayoutConstraint pinViewToSuperview:self.loader useMargins:false];
|
||||||
|
}
|
||||||
|
|
||||||
-(void)setUpCircle {
|
-(void)setUpCircle {
|
||||||
[self setUpCircle:[UIColor blackColor]];
|
[self setUpCircle:[UIColor blackColor]];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user