Fix keyboard not dismiss on iOS9

This commit is contained in:
zhongwuzw
2017-11-07 14:59:16 +08:00
parent 64e26b4e9a
commit 413ff9972c
@@ -64,6 +64,7 @@ class ConversationViewController: MessagesViewController {
@objc func handleKeyboardButton() {
messageInputBar.inputTextView.resignFirstResponder()
let actionSheetController = UIAlertController(title: "Change Keyboard Style", message: nil, preferredStyle: .actionSheet)
let actions = [
UIAlertAction(title: "Slack", style: .default, handler: { _ in
@@ -172,7 +173,6 @@ class ConversationViewController: MessagesViewController {
}
func defaultStyle() {
messageInputBar.inputTextView.resignFirstResponder()
let newMessageInputBar = MessageInputBar()
newMessageInputBar.sendButton.tintColor = UIColor(red: 69/255, green: 193/255, blue: 89/255, alpha: 1)
newMessageInputBar.delegate = self