Skip to content

Commit

Permalink
Add UIReturnKeyNext type in initializeView judge
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsnodnb authored and michaeltyson committed Nov 8, 2017
1 parent e42303d commit 7bb8adb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ -(CGFloat)TPKeyboardAvoiding_idealOffsetForView:(UIView *)view withViewingAreaHe

- (void)TPKeyboardAvoiding_initializeView:(UIView*)view {
if ( [view isKindOfClass:[UITextField class]]
&& ((UITextField*)view).returnKeyType == UIReturnKeyDefault
&& (((UITextField*)view).returnKeyType == UIReturnKeyDefault || (((UITextField*)view).returnKeyType == UIReturnKeyNext))
&& (![(UITextField*)view delegate] || [(UITextField*)view delegate] == (id<UITextFieldDelegate>)self) ) {
[(UITextField*)view setDelegate:(id<UITextFieldDelegate>)self];
UIView *otherView = [self TPKeyboardAvoiding_findNextInputViewAfterView:view beneathView:self];
Expand Down

0 comments on commit 7bb8adb

Please sign in to comment.