Skip to content

Commit

Permalink
Fix initializer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sberrevoets committed Sep 10, 2015
1 parent e4e2afb commit 2d042c9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion SDCAlertView/Source/SDCAlertViewContentView.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,18 @@ @implementation SDCAlertViewContentView

#pragma mark - Initialization

- (instancetype)initWithFrame:(CGRect)frame {
self = [self initWithDelegate:nil];
return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
self = [self initWithDelegate:nil];
return self;
}

- (instancetype)initWithDelegate:(id<SDCAlertViewContentViewDelegate>)delegate {
self = [super init];
self = [super initWithFrame:CGRectZero];

if (self) {
_delegate = delegate;
Expand Down

0 comments on commit 2d042c9

Please sign in to comment.