         button.tintColor = UIColor.messageToolBarHighlightColor()
         button.tintAdjustmentMode = .Normal
         button.setTitleColor(UIColor.messageToolBarHighlightColor(), forState: .Normal)
-        button.addTarget(self, action: "trySendTextMessage", forControlEvents: UIControlEvents.TouchUpInside)
+        button.addTarget(self, action: #selector(trySendTextMessage), forControlEvents: UIControlEvents.TouchUpInside)
         return button
     }()
 

        button.setImage(UIImage(named: "item_mic"), forState: .Normal)
        button.tintColor = UIColor.messageToolBarColor()
        button.tintAdjustmentMode = .Normal
        button.addTarget(self, action: "toggleRecordVoice", forControlEvents: UIControlEvents.TouchUpInside)
        return button
    }()


        button.setImage(UIImage(named: "item_more"), forState: .Normal)
        button.tintColor = UIColor.messageToolBarColor()
        button.tintAdjustmentMode = .Normal
        button.addTarget(self, action: #selector(moreMessageTypes), forControlEvents: UIControlEvents.TouchUpInside)
        return button
    }()

