Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e37c852

Browse files
输入文字时,键盘抖动的 bug
1 parent 8047dea commit e37c852

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎Coding_iOS/Controllers/ConversationViewController.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ - (void)messageInputView:(UIMessageInputView *)inputView heightToBottomChenged:(
166166
CGFloat spaceHeight = MAX(0, CGRectGetHeight(self.myTableView.frame) - self.myTableView.contentSize.height - keyboard_down_InputViewHeight);
167167
contentOffset.y += MAX(0, heightToBottom - keyboard_down_InputViewHeight - spaceHeight);
168168
NSLog(@"\nspaceHeight:%.2f heightToBottom:%.2f diff:%.2f Y:%.2f", spaceHeight, heightToBottom, MAX(0, heightToBottom - CGRectGetHeight(inputView.frame) - spaceHeight), contentOffset.y);
169-
[UIView animateWithDuration:0.25 delay:0.0f options:UIViewAnimationOptionTransitionFlipFromBottom animations:^{
170-
self.myTableView.contentOffset = contentOffset;
171-
} completion:nil];
169+
self.myTableView.contentOffset = contentOffset;
172170
}else{
173171
keyboard_is_down = YES;
174172
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /