Skip to content

Commit

Permalink
Added ability for the downpicker to send events when editing the text…
Browse files Browse the repository at this point in the history
…field begins or ends
  • Loading branch information
Garrison Locke committed Nov 6, 2015
1 parent 709abf3 commit ec7d1b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Pod/Classes/DownPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,15 @@ - (BOOL)textFieldShouldBeginEditing:(UITextField *)aTextField
return NO;
}

- (void)textFieldDidBeginEditing:(UITextField *)textField
{
[self sendActionsForControlEvents:UIControlEventEditingDidBegin];
}

- (void)textFieldDidEndEditing:(UITextField *)aTextField {
// [self doneClicked:aTextField];
aTextField.userInteractionEnabled = YES;
[self sendActionsForControlEvents:UIControlEventEditingDidEnd];
}

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
Expand Down

0 comments on commit ec7d1b3

Please sign in to comment.