code clean && recover message handle logic

This commit is contained in:
zhongwuzw
2018-01-14 16:02:00 +08:00
parent 7a112aa4c4
commit 077b884e15
6 changed files with 29 additions and 36 deletions
@@ -58,17 +58,17 @@ class ConversationViewController: MessagesViewController {
maintainPositionOnKeyboardFrameChanged = true // default false
messagesCollectionView.addSubview(refreshControl)
refreshControl.addTarget(self, action: #selector(loadMoreMessages), for: .valueChanged)
refreshControl.addTarget(self, action: #selector(ConversationViewController.loadMoreMessages), for: .valueChanged)
navigationItem.rightBarButtonItems = [
UIBarButtonItem(image: UIImage(named: "ic_keyboard"),
style: .plain,
target: self,
action: #selector(handleKeyboardButton)),
action: #selector(ConversationViewController.handleKeyboardButton)),
UIBarButtonItem(image: UIImage(named: "ic_typing"),
style: .plain,
target: self,
action: #selector(handleTyping))
action: #selector(ConversationViewController.handleTyping))
]
}