
IM即时通讯
安全可靠、全球互通

实时音视频
流畅稳定、省钱省力
回答:
设置输入框的“隐藏”属性为 YES。
修改 self.view 的背景色。
将消息滚动到最下方。
设置 self.conversationMessageCollectionView 的 frame。
- (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; //隐藏输入框并修改背景色 self.chatSessionInputBarControl.hidden = YES; self.view.backgroundColor = self.conversationMessageCollectionView.backgroundColor; [self scrollToBottomAnimated:NO]; } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; CGRect frame = self.conversationMessageCollectionView.frame; frame.size.height += self.chatSessionInputBarControl.frame.size.height; self.conversationMessageCollectionView.frame = frame; }