Permalink
Browse files

send the text field not the editor

  • Loading branch information...
1 parent e01eae1 commit 30a93faac93e98b6eb32e90e600eb0ecb4c1a321 @joshaber joshaber committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/UIKit/TUITextField.m
View
@@ -100,7 +100,7 @@ - (void)insertTab:(id)sender
- (void)insertNewline:(id)sender
{
if([self _textField]->_textFieldFlags.delegateTextFieldShouldReturn)
- [(id<TUITextFieldDelegate>)[self _textField].delegate textFieldShouldReturn:(id)self];
+ [(id<TUITextFieldDelegate>)[self _textField].delegate textFieldShouldReturn:[self _textField]];
[[self _textField] sendActionsForControlEvents:TUIControlEventEditingDidEndOnExit];
}

0 comments on commit 30a93fa

Please sign in to comment.