Skip to content

Commit

Permalink
Changed designated initializer, so it will work with iOS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
MacMannes committed Jul 22, 2014
1 parent d5a1e72 commit 7036632
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Core/Source/iOS/BlocksAdditions/DTAlertView.m
Expand Up @@ -46,7 +46,14 @@ - (void)dealloc
// designated initializer
- (id)initWithTitle:(NSString *)title message:(NSString *)message
{
return [self initWithTitle:title message:message delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
self = [self init];
if (self)
{
self.title = title;
self.message = message;
}

return self;
}

- (NSInteger)addButtonWithTitle:(NSString *)title block:(DTAlertViewBlock)block
Expand Down

0 comments on commit 7036632

Please sign in to comment.