|
|
@@ -120,6 +120,11 @@ static const CGFloat kQuoteViewHeight = 46.0f;
|
|
|
self._tableView.dataSource = self;
|
|
|
_isfriend=true;
|
|
|
|
|
|
+ CGFloat safeBottom = [UIDevice safeDistanceBottom];
|
|
|
+ UIView *temp = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 60+safeBottom)];
|
|
|
+ temp.backgroundColor = UIColor.blackColor;
|
|
|
+ [_bottonView insertSubview:temp atIndex:0];
|
|
|
+
|
|
|
//输入框
|
|
|
_inputView = [[MentionTextView alloc] initWithFrame:CGRectMake(54, 10, self.view.frame.size.width - 180, 40)];
|
|
|
_inputView.backgroundColor = globalColor(GCTypeDark2);
|
|
|
@@ -1050,6 +1055,9 @@ static const CGFloat kQuoteViewHeight = 46.0f;
|
|
|
// 根据需要调整视图大小或位置(例如,移动某个视图)
|
|
|
// 示例:将一个视图向下移动以适应键盘高度
|
|
|
|
|
|
+ CGFloat safeBottom = [UIDevice safeDistanceBottom];
|
|
|
+ CGFloat offsetY = _keyboardHeight - safeBottom;
|
|
|
+
|
|
|
_gengduoBt.alpha = 1;
|
|
|
_fasngBt.alpha = 1;
|
|
|
_keybarShow=true;
|
|
|
@@ -1057,7 +1065,7 @@ static const CGFloat kQuoteViewHeight = 46.0f;
|
|
|
delay:0
|
|
|
options:UIViewAnimationOptionCurveEaseInOut
|
|
|
animations:^{
|
|
|
- self.inputViewBottom.constant = self.keyboardHeight;
|
|
|
+ self.inputViewBottom.constant = offsetY;
|
|
|
[self.view setNeedsLayout];
|
|
|
[self.view layoutIfNeeded];
|
|
|
} completion:^(BOOL finished) {
|
|
|
@@ -1265,6 +1273,7 @@ static const CGFloat kQuoteViewHeight = 46.0f;
|
|
|
self.isQuoteMessage = NO;
|
|
|
}
|
|
|
_inputView.text=@"";
|
|
|
+ [self textViewDidChange:_inputView];
|
|
|
}
|
|
|
if(_keybarShow){
|
|
|
_gengduoBt.alpha = 1;
|