Skip to content

Commit

Permalink
Delegate bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Frugghi committed May 14, 2013
1 parent 6c8b0c8 commit ca23383
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EGOTextView/EGOTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ - (void)actionSheet:(UIActionSheet *)actionSheet willDismissWithButtonIndex:(NSI
#pragma mark - UIResponder

- (BOOL)canBecomeFirstResponder {
if (_editable && self.delegate && [self.delegate respondsToSelector:@selector(egoTextViewDidBeginEditing:)]) {
if (_editable && self.delegate && [self.delegate respondsToSelector:@selector(egoTextViewShouldBeginEditing:)]) {
return [self.delegate egoTextViewShouldBeginEditing:self];
}

Expand Down Expand Up @@ -1724,7 +1724,7 @@ - (BOOL)resignFirstResponder {

_editing = NO;

if (self.delegate && [self.delegate respondsToSelector:@selector(egoTextViewShouldEndEditing:)]) {
if (self.delegate && [self.delegate respondsToSelector:@selector(egoTextViewDidEndEditing:)]) {
[self.delegate egoTextViewDidEndEditing:self];
}

Expand All @@ -1744,7 +1744,7 @@ - (BOOL)resignFirstResponder {
[menuController setMenuVisible:NO animated:YES];
}

return [super resignFirstResponder];
return [super resignFirstResponder];
}

#pragma mark - UIMenu Presentation
Expand Down

0 comments on commit ca23383

Please sign in to comment.