|
@@ -224,6 +224,17 @@ static CGRect gCustomTopViewRect;
|
|
|
|
|
|
- (void)viewDidDisappear:(BOOL)animated {
|
|
|
[super viewDidDisappear:animated];
|
|
|
+ if (self.inputController.status == Input_Status_Input || self.inputController.status == Input_Status_Input_Keyboard) {
|
|
|
+ CGPoint offset = self.messageController.tableView.contentOffset;
|
|
|
+ __weak typeof(self) weakSelf = self;
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ __strong typeof(weakSelf) strongSelf = weakSelf;
|
|
|
+ strongSelf.responseKeyboard = YES;
|
|
|
+ [UIApplication.sharedApplication.keyWindow endEditing:YES];
|
|
|
+ [strongSelf inputController:strongSelf.inputController didChangeHeight:CGRectGetMaxY(strongSelf.inputController.inputBar.frame) + Bottom_SafeHeight];
|
|
|
+ [strongSelf.messageController.tableView setContentOffset:offset];
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
|